Stock above 10 MA

Buy: stock above 10 sma . 10 sma is rising, rsi (4) is below 50 Sell: stock is below 10 sma 10sma is falling Rsi(4) is above 50 Please provide code

HeLlO TrAdEr,

 BUY SCRIPT:

CLOSE > SMA(CLOSE,10) AND 
RSI(CLOSE,4) < 50 AND 
SMA(CLOSE,10) > REF(SMA(CLOSE,10),1) 

SELL SCRIPT:

CLOSE< SMA(CLOSE,10) AND 
RSI(CLOSE,4) > 50 AND 
SMA(CLOSE,10) < REF(SMA(CLOSE,10),1) 
1 Like