What could be the code for crossover of ema 3 and ema 21 in 5 min time frame and close > 20 sma in 60 min time frame

I wanted a code for multiple time frame like ema 3 and ema 21 crossover in 5 min time frame and at the same time price should be above 20 sma in 60 min time frame pl help in this regard.

Thanks in advance

1 Like

You can use one code at a time frame, you can not define two time frames in a single code

Buy Script:

CROSSOVER(EMA(CLOSE,3),EMA(CLOSE,21)) AND LAST > SMA(CLOSE,20)
1 Like