OPEN-SOURCE SCRIPT
Frequent Swing Trading Supertrend Strategy (Daily)

Made By Riddhiman Bandyopadhyay
How to Use-
Set Chart to Daily: Ensure your TradingView chart is set to a daily timeframe (D).
Add Strategy: Copy the Pine Script code into TradingView’s Pine Editor, compile, and add it to your NIFTY chart.
Logic Behind the Backtest : Use TradingView’s Strategy Tester to evaluate performance over the past few months (e.g., March to June 2025). Check if the buy/sell signals occur more frequently and capture shorter swings.
Fine-Tune: If signals are too frequent (leading to whipsaws), increase atr Period to 12 or factor to 3.5. If still not frequent enough, reduce maPeriod to 8 or lower the RSI thresholds to 65/35.
Why This Should Work Better
Increased Sensitivity: The Supertrend (ATR 10, factor 3.0) and 10-period SMA make the strategy more responsive to daily price movements, generating more signals.
Fewer Restrictions: Removing the 50-period SMA filter and loosening entry conditions allow trades in a wider range of market conditions.
Quicker Exits: The 3% profit target encourages faster exits, freeing up capital for new trades, thus increasing frequency.
Balanced Filtering: The RSI (70/30) still filters out extreme conditions, but it’s less restrictive, allowing more trades.
How to Use-
Set Chart to Daily: Ensure your TradingView chart is set to a daily timeframe (D).
Add Strategy: Copy the Pine Script code into TradingView’s Pine Editor, compile, and add it to your NIFTY chart.
Logic Behind the Backtest : Use TradingView’s Strategy Tester to evaluate performance over the past few months (e.g., March to June 2025). Check if the buy/sell signals occur more frequently and capture shorter swings.
Fine-Tune: If signals are too frequent (leading to whipsaws), increase atr Period to 12 or factor to 3.5. If still not frequent enough, reduce maPeriod to 8 or lower the RSI thresholds to 65/35.
Why This Should Work Better
Increased Sensitivity: The Supertrend (ATR 10, factor 3.0) and 10-period SMA make the strategy more responsive to daily price movements, generating more signals.
Fewer Restrictions: Removing the 50-period SMA filter and loosening entry conditions allow trades in a wider range of market conditions.
Quicker Exits: The 3% profit target encourages faster exits, freeing up capital for new trades, thus increasing frequency.
Balanced Filtering: The RSI (70/30) still filters out extreme conditions, but it’s less restrictive, allowing more trades.
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.