Using Python and the MQL5 Meta Trader Python integration module - we need the code that performs calculations for the following 3 scenarios.
It is important to note that these calculations need to work for the 24 symbols listed below, as their characteristics vary between them.
1. Calculate the “volume” in lots (to be used in an MT5 order_send request) based on the % of the account balance, for each symbol below. For example, how many lots of GBPEUR would equal 2% (or X%) of the account balance. Noting that the price would be the current price at that time of calculation.
2. Calculate the SL and TP for an order_send request as a price, that relates to the value of the actual order, for each symbol below. For example, what SL price would represent 95% (or X%) of the value of a trade, and what TP prices would equal 200% (or Y%) of the value of the same trade. Noting that the price would be the current price at that time of calculation.
3. Calculate VWAP for each symbol below. Note that the VWAP needs to be accurate as at the time of executing the calculation.
IT IS EXPECTED that the developer has experience in MQL5 and specifically the Python Integration module.
Deliverable will be working code, as well as the mathematics that show how the calculations were derived.