Tma sma crossover code

Can anyone help me with code for sma 30 crossing tma 20 in pi trader also the crossover candle has to be green candle …

1 Like

hElLO tRaDeR,

BUY SCRIPT: ( 30 SMA crossing 20 TriangularMA from down to up)

REF(SMA(CLOSE,30),1) < REF(TMA(CLOSE,20),1) AND 
SMA(CLOSE,30) > TMA(CLOSE,20) AND 
CLOSE > OPEN 

thanks for your concern… can u pls code the same for sell strategy…coz im not able to back test