OPEN-SOURCE SCRIPT
RSI-SMA + ADX + EMA Optimized Strategy

RSI-SMA Crossover Strategy for Nifty Option Buying
Strategy Type: Intraday or Swing
Instruments: Nifty ATM Options (Weekly expiry)
Chart Timeframe: 5-minute (for intraday) or 15-minute (for short-term trades)
Indicators Used:
RSI (Relative Strength Index) – 14 period
SMA (Simple Moving Average) of RSI – typically 9 or 10 period
Entry Rules:
Buy ATM Call Option (Bullish Setup):
RSI crosses above its SMA (RSI line crosses above RSI-SMA).
RSI is above 50 at the time of crossover.
Nifty price is above 20 EMA (optional filter for trend confirmation).
Buy ATM Call Option of current week expiry.
Buy ATM Put Option (Bearish Setup):
RSI crosses below its SMA.
RSI is below 50 at the time of crossover.
Nifty price is below 20 EMA (optional).
Buy ATM Put Option of current week expiry.
Exit Rules:
Target: 30–50% profit on premium
Stop-loss: 25–30% of premium OR opposite crossover
Time-based exit: Square off by 3:15 PM (for intraday)
Strategy Type: Intraday or Swing
Instruments: Nifty ATM Options (Weekly expiry)
Chart Timeframe: 5-minute (for intraday) or 15-minute (for short-term trades)
Indicators Used:
RSI (Relative Strength Index) – 14 period
SMA (Simple Moving Average) of RSI – typically 9 or 10 period
Entry Rules:
Buy ATM Call Option (Bullish Setup):
RSI crosses above its SMA (RSI line crosses above RSI-SMA).
RSI is above 50 at the time of crossover.
Nifty price is above 20 EMA (optional filter for trend confirmation).
Buy ATM Call Option of current week expiry.
Buy ATM Put Option (Bearish Setup):
RSI crosses below its SMA.
RSI is below 50 at the time of crossover.
Nifty price is below 20 EMA (optional).
Buy ATM Put Option of current week expiry.
Exit Rules:
Target: 30–50% profit on premium
Stop-loss: 25–30% of premium OR opposite crossover
Time-based exit: Square off by 3:15 PM (for intraday)
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.