close open orders at specific time
-
Im trying to make an ea that open order at a specific time (if certain conditions are met) and also closes open orders at a specific time. For some reason i cant make the ea close open orders at the set time. I found an old thread on this forum where it was advised to use the "once per day" block and set the time to close the order in that block - followed by "close trades". For some reason however, the ea does not close open orders at the specified time Any ideas? https://fxdreema.com/shared/LVZ8LEoyd
-
https://fxdreema.com/shared/5o9QUBjRb if this helps
-
Hmm, cant really get it to work. I tried to set the settings of the "close trades" block, to 240 minutes, so the ea should close the position after 4 hours, but it does not work wither..

-
@piptheripper You should disconnect blocks 4 and 8. You are requiring the EA to open AND close the trade at the same time. You need to separate block trees controlling opening and closing separatedly. Obviously you will need another time filter on top of teh new block tree to determine when the trade is closed.
-
Thanks!!!!
-
@piptheripper You're welcome.