Comment on Managing your Script
Buy : if 5min candle closes above 13SMA(high) and RSI > 60.
Close>SMA(High,13) AND RSI(Close,14)>60
Buy Exit: when 5EMA(close) crosses 8EMA(close) and RSI <40.
EMA(Close,5)>EMA(Close,8) AND RSI(Close,14)<40
StopLoss: Or if Candle closes below 7EMA(close)
(Also pls tell if we want to exit on 2 points automatically after buy entry )
Stop loss cannot be entered as a strategy, you can enter the trigger in terms of % as shown above.
You cannot have a strategy like exit 2 points after buy entry, because the buy entry price is not captured.