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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.