Please code this strategy

buy when 5 SMA crosses over 20 SMA and RSI is above 50 on 5 minute chart

sell when 5 SMA crosses over 20 SMA and RSI is below 50 on 5 minute chart

As per the above condition using 5 minute chart time frame

Buy Script:

CROSSOVER(SMA(CLOSE,5),SMA(CLOSE,20)) AND RSI(CLOSE,14)>50

Sell Script:

CROSSOVER(SMA(CLOSE,20),SMA(CLOSE,5)) AND RSI(CLOSE,14)<50
1 Like

for which script you are using this bhai