Trabalho concluído
Termos de Referência
I need some to work on this. MT5 CODE
Entry logic:
✅EA starts trade by opening buy and sell order at HH:MM:SS
✅IF it is in trend mode, it will close loss at the next grid line (line 3 in the diagram) and let the profit run up to the next ( line 2, or back to line 4).
✅If it is in range mode, it will close profit at line 3 and let it run as above. When the last order closes, the EA will continue another cycle by opening by and sell order at the beginning of the next candle and follow the same logic.
In summary, buy and sell orders are only opened once at the beginning of x candle Timeframe. The rest is to manage closing of orders as at when due depending if we are in range mode or trend mode.
✅We predetermine how many cycles the EA will go before it closes work.
✅ We determine the lot sizes and the grid lines Closing logic
✍️ EA closes and stop working, when we reach x number of cycles.
✍️ EA closes and stop working at particular time HH:MM: SS
✍️ EA closes and stops working when we reach gross profit or gross loss. Gross profit and gross means the sum of all the loses or profits from all the cycles.
ADD SWITCH TO CLOSE EA AND CLOSE ALL TRADES AT ONCE