After closing a trade wait "n" candles to open new one.
-
Hey guys, I have been searching the solution for few days now at the forum but couldn't find a working one.
My EA triggers false trades after closing previous trade. So I want it to wait for n candles after closing a trade, and then continue. It has to work on tick.
I tried using true false flag, I think I couldn't find how to change flag status back to true to continue trading.
Any ideas please?
-
@fxtr This will probably do as you like, can do the same with flags but with a variable you can put in a comment block to visually check if working.
-
@jstap May I suggest to include a 'No trade' block on top of block 7? Technically that is not necessary, but that would definitely check other trades from other charts do not conflict this one if necessary.
-
@l-andorrà I wasn't showing how to create the EA, I was showing how I would do the one condition.
-
@jstap Sure. Thanks for the clarification.

-
@l-andorrà No problem
-
@jstap said in After closing a trade wait "n" candles to open new one.:
bly do as you like, can do the same with flags but with a variable you can put in a comment block to visually check if worki
Thanks for your idea but I did what you suggested and put the condition just above buy and sell block, but it didn't stop EA to take trades in the same candle it closed another trade
-
@fxtr Put the shared link on here and ill have a look.