Only Allow Trade on the first 7 bar after Indicator Signal
-
Hi'
I am currently working on my EA that i think need this touch. I want to only allow trade happen on the first 7 bar after my indicator give a signal.
For example, let's say i have MA crossover as the main indicator and William%R as the confirmation indicator, both indicator need to be on the same signal to go for a trade. So, when the MA crossover happen and it's says BUY, i want to give the William%R 7 bar to catch up giving a BUY signal as well. Otherwise i don't open the trade.
The question, how can possibly i do this? i tried using every "n" bar but just no good result so far.Thanks for your attention,
-
@everjn17 I don't know how you confirm with W %R, but by principle it should work like this

x> with width 7 from my understanding means, that there was a cross within the last 7 candles and close price staid above the MA since that cross happened. I think that's what you're looking for.
-
Trader.philipps is correct. However, if what you want is that trade is allowed only ONLY when the seventh bar has been created, you just need to change the number of the cande ID from 1 to 7 on the left operand and 8 to the right one. Additionally , the 'cross width' section shoud be modified to 1.