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)
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.