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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。