Comment on Managing your Script
Hi Amit:
Try this and let us know if it works for you. Always backtest your strategy before taking it live.
For buying: MACD(26,12,9,EXPONENTIAL)>MACDSIGNAL(26,13,9,EXPONENTIAL) AND RSI (CLOSE,10) > 30 AND REF(RSI(CLOSE,10),1)<30
For selling: MACD(26,13,9,EXPONENTIAL)<MACDSIGNAL(26,13,9,EXPONENTIAL) AND RSI (CLOSE,10) < 70 AND REF(RSI(CLOSE,10),1)>70.