How shutdown EA after taking one trade (without terminate condition)
-
Win or lose i want my EA to close after the trades closed but then start the next day via Time filter block
-
once a day reset a flag to true, trade placed (or closed) set flag to false
-
@jstap Is this how im meant to structure it
https://fxdreema.com/shared/LjN1Y0aYb -
You need to check this flag above buy/sell, and do it on both on tick, and on trade, buy/sell on tick:


-
@jstap ah makes sense I’ll give it a try
-
@jstap IVe tried it and still had a bit of trouble could you explain thugh how the EA gets the logic from this to turn off the EA until the next day via the flag method
-
If flag false, when checked can't pass, once a day it is reset, so when checked it can pass...
-
Just roughly is this how youre saying it should look
https://fxdreema.com/shared/9UeTYyaZd -
You do not need to place a trade on trade tab:

-
@jstap ah ok I only did that because you originally said put it above buy/sell on both, on tick and on trade. Either though is there any other changes that I need to make, has this worked for you before on any other project
-
@jstap I solved it, i literally just had to put the once a day block just before buy/sell and that was it nothing else was needed, thanks for your help
-
No problem