Need a code for ema 20 50 100 200 cross over

I need a code for scanning n number of stocks t signal a buy or sell on cdrossover of ema 20 50 100 200 with TF 1 to 60 minutes.

For the above given condition

Buy scrit:

CROSSOVER(EMA(CLOSE,20),EMA(CLOSE,50) AND CROSSOVER(EMA(CLOSE,100),EMA(CLOSE,200)

Sell script:

CROSSOVER(EMA(CLOSE,50),EMA(CLOSE,20) AND CROSSOVER(EMA(CLOSE,200),EMA(CLOSE,100)

1 Like