INVITE-ONLY SCRIPT
Auto Range Detector

Auto Range Detector
Overview
The Auto Range Detector is a Pine Script v6 indicator for TradingView, designed to identify price consolidation ranges and detect breakouts and fakeouts. It overlays dynamic and verified range boxes, highlighting zones based on inside candles, and includes real-time fakeout markers and hypothetical range marks. Custom fakeout verification reduces false signals by validating reentries in real-time. With customizable settings, this indicator is commonly used for studying range-based breakouts and reversals in any market.
How It Works
The indicator detects consolidation ranges by counting candles (default: minimum 3) within a user-defined lookback period (default: 20 bars) using TradingView’s ta.highest and ta.lowest functions—focusing on inside bars to capture true consolidation without noise. Dynamic boxes update in real-time to reflect the range’s high and low, colored based on the price’s position relative to the midline (bullish, bearish, or neutral). Verified ranges are locked in as boxes (up to 5 displayed), with colors illustrating breakout direction. Fakeouts are identified when price breaks out but reenters the range within a specified window (default: 3 bars), with arrow marks plotted when price verifies the fakeout direction. Hypothetical boxes illustrate ranges over a user-defined period (default: 10 bars) using real-time high/low updates.
Key Features
• Range Detection: Identifies consolidation zones based on a minimum number of inside candles.
• Fakeout Detection: Spots and verifies false breakouts within a user-defined window.
• Hypothetical Range Boxes: Illustrates hypothetical high/low ranges with dynamic updates.
• Color-Coded Visualization: Displays initial, bullish, bearish, and box markers with customizable colors.
• Breakout/Fakeout Markers: Marks hypothetical breakouts and verified fakeouts with labeled arrows.
• Customizable Settings: Adjust range length, minimum touches, fakeout window, and hypothetical period.
What It Displays
This indicator combines consolidation detection with real-time fakeout markers and hypothetical ranges, offering a unique approach to range trading. Its ability to identify and validate breakouts and reversals makes it a versatile tool for day trading, scalping, or swing trading in stocks, forex, futures, or crypto, enhancing trade precision.
Originality
This indicator is an original Pine v6 implementation using TradingView’s built-in ta.highest, ta.lowest, math.max, and math.min functions.
Common Ways People Use It
• Day traders reviewing range breakouts and fakeout reversals.
• Scalpers studying short-term consolidation zones.
• Technical analysts illustrating price ranges and market direction.
Configuration Notes
Configure the range detection length (default: 20 bars), minimum inside candles (default: 3), fakeout window (default: 3 bars), and hypothetical window (default: 10 bars). Customize box and arrow colors to suit your chart. Use verified boxes and breakout/fakeout arrows to identify commonly monitored trade setups.
Legal Disclaimer
These indicators are for informational and educational purposes only—not investment, financial, or trading advice. Past performance is not indicative of future results; trading involves high risk of loss. Provided "as is" with no warranties. Consult a qualified professional before decisions. By using, you assume all risk and agree to this disclaimer.
Overview
The Auto Range Detector is a Pine Script v6 indicator for TradingView, designed to identify price consolidation ranges and detect breakouts and fakeouts. It overlays dynamic and verified range boxes, highlighting zones based on inside candles, and includes real-time fakeout markers and hypothetical range marks. Custom fakeout verification reduces false signals by validating reentries in real-time. With customizable settings, this indicator is commonly used for studying range-based breakouts and reversals in any market.
How It Works
The indicator detects consolidation ranges by counting candles (default: minimum 3) within a user-defined lookback period (default: 20 bars) using TradingView’s ta.highest and ta.lowest functions—focusing on inside bars to capture true consolidation without noise. Dynamic boxes update in real-time to reflect the range’s high and low, colored based on the price’s position relative to the midline (bullish, bearish, or neutral). Verified ranges are locked in as boxes (up to 5 displayed), with colors illustrating breakout direction. Fakeouts are identified when price breaks out but reenters the range within a specified window (default: 3 bars), with arrow marks plotted when price verifies the fakeout direction. Hypothetical boxes illustrate ranges over a user-defined period (default: 10 bars) using real-time high/low updates.
Key Features
• Range Detection: Identifies consolidation zones based on a minimum number of inside candles.
• Fakeout Detection: Spots and verifies false breakouts within a user-defined window.
• Hypothetical Range Boxes: Illustrates hypothetical high/low ranges with dynamic updates.
• Color-Coded Visualization: Displays initial, bullish, bearish, and box markers with customizable colors.
• Breakout/Fakeout Markers: Marks hypothetical breakouts and verified fakeouts with labeled arrows.
• Customizable Settings: Adjust range length, minimum touches, fakeout window, and hypothetical period.
What It Displays
This indicator combines consolidation detection with real-time fakeout markers and hypothetical ranges, offering a unique approach to range trading. Its ability to identify and validate breakouts and reversals makes it a versatile tool for day trading, scalping, or swing trading in stocks, forex, futures, or crypto, enhancing trade precision.
Originality
This indicator is an original Pine v6 implementation using TradingView’s built-in ta.highest, ta.lowest, math.max, and math.min functions.
Common Ways People Use It
• Day traders reviewing range breakouts and fakeout reversals.
• Scalpers studying short-term consolidation zones.
• Technical analysts illustrating price ranges and market direction.
Configuration Notes
Configure the range detection length (default: 20 bars), minimum inside candles (default: 3), fakeout window (default: 3 bars), and hypothetical window (default: 10 bars). Customize box and arrow colors to suit your chart. Use verified boxes and breakout/fakeout arrows to identify commonly monitored trade setups.
Legal Disclaimer
These indicators are for informational and educational purposes only—not investment, financial, or trading advice. Past performance is not indicative of future results; trading involves high risk of loss. Provided "as is" with no warranties. Consult a qualified professional before decisions. By using, you assume all risk and agree to this disclaimer.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 TradingScriptSolutions에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
To access this premium indicator, purchase at https://whop.com/tradingscript-solutions-llc/premium-auto-range-detector/ . Once you've bought access, you'll receive the invite link or code to add it to your TradingView account.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 TradingScriptSolutions에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
To access this premium indicator, purchase at https://whop.com/tradingscript-solutions-llc/premium-auto-range-detector/ . Once you've bought access, you'll receive the invite link or code to add it to your TradingView account.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.