Trabajo finalizado
Tarea técnica
1. I want function that will use the totalBuyLots and totalSellLots to place trades when there is reverse trade direction. For example, if there is an open trade of buy, 0.1, 0.1, 0.1, then if the trade direction change to sell, meaning a sell trad is opened, then the totalBuyLots which now 0.3 will be used to open the sell of 0.3 lots. Same if a sell trade is opened first, then total lots will be used when direction changes to buy. I want a user input variable to limit how many times the total lots will be use before reset to the initial lots, for example, buy 0.1,0.1,0.1 then sell opened 0.3, another sell 0.3, 0.3, then reset to initial lot sell 0.1, 0.1. (Buy 0.1,0.1,0.1,Sell 0.3,0.3,0.3,0.1,0.1), that means totallots was used 3 times then reset, the sequence continues. The function should be turn on or off.
2. I want another function that is similar the the above one, but it instead of the totallots, it will be the floating loss profit of the chart symbol. The floating profit amount should be used to calculate that will be used for the reverse trade. For example, if the floating loss profit is at $50, the pip value relative to the lot that sums up $50 will be used calculate the lots to be used. So it is like using the floating equity to calculate the lot size.
Both functions should use the magicNumber and chart symbol so it does not conflict when the EA is used in a different symbol.
3. Maxlot for each trade, by user input, should be able to turn it off or on.
4. Add a trade timer delay, to delay when a next trade can be placed. The timer should be in minutes. It should be turned on or off
I will provide the EA within