OPEN-SOURCE SCRIPT
SR CHART PATTERN SCALPER V1

SR Chart Pattern Scalper V1 is a non-repaint TradingView strategy designed to identify measurable price action setups based on confirmed support and resistance levels combined with classic chart patterns.
The strategy uses confirmed pivot highs and pivot lows to define support and resistance zones. It then detects several well-known chart patterns, including Double Bottom, Double Top, Breakout + Retest, Rectangle Breakout, and Triangle Breakout.
All signals are generated only after candle close and confirmed pivot validation, making the logic non-repaint. The script does not use future data, lookahead, or repainting conditions.
Main features:
- Confirmed support and resistance detection
- Double Top and Double Bottom detection
- Breakout + Retest setup detection
- Rectangle Breakout detection
- Triangle Breakout detection
- ATR-based support/resistance tolerance
- Optional EMA 200 trend filter
- Optional ADX strength filter
- Session filter
- Automatic risk-based position sizing
- ATR-buffered stop loss
- Risk-to-reward based take profit
- Maximum trades per day
- Cooldown between trades
- Time-based exit for measurable backtesting
- Visual Entry, SL, and TP lines
- On-chart dashboard with metrics and pattern counters
The strategy is intended for traders who want a structured and measurable approach to chart pattern trading, instead of relying on subjective visual interpretation.
The logic is based on:
1. Confirmed support and resistance zones
2. A valid chart pattern formation
3. Candle-close confirmation
4. Risk validation
5. Optional trend and momentum filters
Recommended usage:
- M15 for intraday trading and balanced signal frequency
- H1 for cleaner and more reliable chart patterns
- M5 only for more aggressive scalping or entry refinement
Non-repaint logic:
The strategy uses confirmed pivots and bar-close confirmation only. Signals are not generated from unfinished candles.
Disclaimer:
This script is for educational and backtesting purposes only. It does not guarantee future results. Always test the strategy on your own symbol, broker feed, and market conditions before using it in live trading.
The strategy uses confirmed pivot highs and pivot lows to define support and resistance zones. It then detects several well-known chart patterns, including Double Bottom, Double Top, Breakout + Retest, Rectangle Breakout, and Triangle Breakout.
All signals are generated only after candle close and confirmed pivot validation, making the logic non-repaint. The script does not use future data, lookahead, or repainting conditions.
Main features:
- Confirmed support and resistance detection
- Double Top and Double Bottom detection
- Breakout + Retest setup detection
- Rectangle Breakout detection
- Triangle Breakout detection
- ATR-based support/resistance tolerance
- Optional EMA 200 trend filter
- Optional ADX strength filter
- Session filter
- Automatic risk-based position sizing
- ATR-buffered stop loss
- Risk-to-reward based take profit
- Maximum trades per day
- Cooldown between trades
- Time-based exit for measurable backtesting
- Visual Entry, SL, and TP lines
- On-chart dashboard with metrics and pattern counters
The strategy is intended for traders who want a structured and measurable approach to chart pattern trading, instead of relying on subjective visual interpretation.
The logic is based on:
1. Confirmed support and resistance zones
2. A valid chart pattern formation
3. Candle-close confirmation
4. Risk validation
5. Optional trend and momentum filters
Recommended usage:
- M15 for intraday trading and balanced signal frequency
- H1 for cleaner and more reliable chart patterns
- M5 only for more aggressive scalping or entry refinement
Non-repaint logic:
The strategy uses confirmed pivots and bar-close confirmation only. Signals are not generated from unfinished candles.
Disclaimer:
This script is for educational and backtesting purposes only. It does not guarantee future results. Always test the strategy on your own symbol, broker feed, and market conditions before using it in live trading.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。