Confirm a buy or a sell
-
Hello Friendz , i use an moving average in 5 minutes Time Frame , and i need to my robots confirm a buy or a sell after 2 candles ! how i do that ! thanks
-
This could work

When "Condition to pass -> EMA" is true, "Condition" to start counting bars is enabled.
At the next bar since "Condition" is true, the count starts by adding 1 at the current BarCount value.
When "BarCount == 2" passes, the block to enter at market is executed and the BarCount and Condition variables are reset.
-
@josecortesllobat thanks
-
But MA holds the values for the old candles, I mean you can get MA for the current candle, for the previous candle and for any candle on the chart. It's easier to do that by specifying Candle ID to 1, 2 or whatever candle you want.