Provide Tradescript for following condition

BUY :IF(AND(SMA(5)> SMA(25)),(SMA(5)<SMA(25))

Where first condition compare value of Close SMA.

Second condition compare value of  Pervious value to Close SMA

NaMasTe TraDeR,

SMA(CLOSE,5) > SMA(CLOSE,25) AND 
REF(SMA(CLOSE,5),1) < REF(SMA(CLOSE,25),1)  
1 Like