Please can someone help, I am trying for a EMA15 over EMA 30 Screener within the last 5 periods (or candles)
I have tried but cannot find a way for this to happen or alert regarding the last 5 periods.
Thank you in anticipation or someone understanding coding more than I.
JSParticipant
Senior
Try this one…
EMA15=Average[15,1](Close)
EMA30=Average[30,1](Close)
Long=Summation[5](EMA15 crosses over EMA30)=1
Short=Summation[5](EMA15 crosses under EMA30)=1
Screener[Long or Short](Long as "Long", Short as "Short")
THANK YOU
Much appreciated your speedy response it is just what I needed.