How I can make my EA stop in target and continue in another time?
For example,if the EA earn 100 pips in this day,he will stop and start agian in the next day.
An example of code to stop and re-commence trading the next day in this thread
The code in the other thread shows you how to find the datetime value for midnight.
Loop through open orders and history and sum OrderProfit() for each trade with an OrderOpenTime>= midnight.
Pls I am in need of the code you requested for help about. Can you pls post it here if you are able to make it work or you have a working codes? I was the one that opened this thread: https://forum.mql4.com/67412 but I am yet to get a working code to stop my ea from trading for the rest of the day after I have reached my daily target profit.
Thanks in advance as you help a fellow brother.
To add comments, please log in or register