Moving average cross
-
How can i make block only taking trades if ema cross above sma but when the candle is greater than 20 candles after the cross?
-
What do you exactly mean by 'when the candle is greater than 20 candles after the cross?'
-
@l-andorrà yes please
-
You didn't answer my question.

-
i mean i want to create a condition that only looking for trade when sma50 cross above sma200 but when its already more than 20 candles has fast from the cross of sma
-
cross happens reset variable to 0, once per bar count +1 on variable, check count above placing a trade
-
@jstap hi can yo show me how to do it im new to how variable doing
-
upper left create a variable (double) and call it what you want, under a pass block put a comment with this variable, put a once per bar block and add 1 every candle to the variable using a formula block saving back into the variable. under a condition block for the X set variable back to 0 using a modify block, you can check this variable in a standard condition block.
-
@jstap can you please if i was doing correct
https://fxdreema.com/shared/8zF13WtTb -
More like this back test and let me know if something's not working.
