turn off/on block when certain number of trades are closed
-
I have a news trading ea which opens multiple trades on different levels, SL/TP are dollar value levels. I want to turn off the ea when the first circle of trades are closed (no matter with loss or profit) after the data release and turn it on back to normal after X minutes. I have tried to use 'toggle blocks' to do what I want but it doesn't work. the shared project below is how I have done that. I can't figure out what is wrong with that.
i have copied relevant blocks from 'on tick' and 'on trade' tabs. blocks 6,7 in 'toggle blocks' are 'buy now' and 'sell now' blocks.
https://fxdreema.com/shared/EdUknGCjb -
Where is block 6, 7? Blocks under ontrade tab trade closed block will happen once, to use time to turn blocks back on you will need to do this ontick
-
@jstap blocks 6,7 are in 'buy now' 'sell now' blocks on tick tab. I have moved them to 'on tick ' tab. the problem is that it does not restart after 'once per minutes' block. (toggle--->once per minutes----> toggle). this is how I have tried to turn blocks 6,7 off and on for a specific amount of time neither in 'on trade' or 'on tick' tabs
-
Add the project that is not doing what you want, then say what blocks are not doing things right