After win or loss place no trades for X time?
-
How do i make it so that after a win or loss my EA doesnt place trades for x amount of time, i trade skip ticks block but that messes things up because it resets the whole process and with higher time frame conditions it makes everything start again, are there any alternatives
-
set a flag - check above buy/sell - reset after a certain amount of time
-
@jstap but then that resets all the conditions meaning all the higher time frames conditions would need to be met all over again, i just dont want it to place another trade for 10 minutes for example
-
No, it doesn't; it will run alongside what you have. If you don't want flags to affect what is happening, make sure nothing is underneath that is calculating things.
-
-
Start a branch as shown in the last post
- Turn off the block as default.
- In your original blocks when your suspension condition is met, enable it
- Then it will start up. The first pass will turn off the buy and sell blocks (you need to enter your block numbers)
- In Once per minute. Enter 1. Specific the time, say, if 20 minutes, input 20 in the Pass n times block
- After the time you specify, it will enable the buy, sell blocks again after, say, 20 minutes
- After all, it turn off the block at the top of this branch (you need to check the block number referring to the top block).
- And the Pass n times counter is reset as well (you need to check the counter ID yourself)
It will then wait for next suspension condition. Hope it works for you
