Automatic Stop for the day and Restart next day
-
Hello,
Is there a way to automatically stop the EA for the day (say at a percentage of profit hit) then restart next day?
I can only do this with the Terminate function (with a Variable setup and a Once a Day condition to close all trades when Variable value is hit) - but would have to restart manually next day.
The problem is we can't backtest this..
Any suggestion would help. Thank you!
B

-
Instead of terminate use a flag, reset once a day and check above buy sell, if you want you can close all trades when you set flag false.
-
@jstap said in Automatic Stop for the day and Restart next day:
Instead of terminate use a flag, reset once a day and check above buy sell, if you want you can close all trades when you set flag false.
Thank you J! Been looking for this for so long.. I hope I set it up correctly, seems to work, I gotta test further.

-
That should work perfectly, if you have problems, set once per day to act over a minute, just ensures a tick happens to cause the reset. You likely do not need the once per day to set flag to off.
-
Yes, I have the ON Once a Day setup at 1:05.
I have the flag OFF setting because I assumed that if condition is met (Equity > Target), it will close all positions and take take the profit, but then will continue to enter trades if the other criteria is met (as flag would still stay ON). I wanted it to completely stop trading for the day. Am I wrong?
-
Ok but do you want a condition to set it or time? If you add a shared link inside blocks can be looked at
-
I want a condition to set it to OFF for the rest of the day, and time to ON at the start of next day. Trades are only taken if ON.
-
Hi guys I created a robot is opening trades but is not closing when it's time to close I need help