Range Profile Structure [BOSWaves]

Range Profile Structure [BOSWaves] - Swing-Validated Range Detection with Integrated Volume Profile, Deviation Tracking, and Breakout Position Planning
Overview
Range Profile Structure [BOSWaves] is a swing-validated range detection system that identifies consolidation phases from clustered, alternating swing highs and lows, builds a volume profile inside each detected range, tracks failed excursions beyond the range edges as deviations, and automatically generates a structured position framework when price confirms a breakout or breakdown with consecutive closes beyond the range.

Instead of drawing ranges from fixed lookback windows or arbitrary high and low values, each range is constructed only when recent swing structure satisfies a set of measurable conditions: enough touches on each edge, enough alternating rotations between them, tight clustering of the swing prices that form each edge, a minimum span in bars, and a width that falls within ATR-based limits. Once active, the range edges adapt to new swings that touch them, the volume profile accumulates every bar's volume across price rows inside the range, and the point of control marks the price level where the most volume has traded.
This creates a range framework that bridges consolidation detection, volume distribution analysis, and breakout execution within a single indicator. The range gradient and edge lines define the structure, the volume profile reveals where participation has concentrated inside it, deviation markers record excursions that were rejected back into the range, and the position tool translates each confirmed break into a fully defined trade structure anchored to the range itself.
Price is therefore evaluated not just for whether it is inside or outside a range, but for where volume has accepted price within that range, whether excursions beyond its edges are being rejected or accepted, and what structured risk and reward a confirmed break offers.
Conceptual Framework
Range Profile Structure is founded on the principle that a trading range should be defined by repeated, measurable rotation between stable boundaries rather than by a visual impression of sideways price action, and that the volume traded inside the range and the behavior of price at its edges determine how the range is most likely to resolve.
Traditional range tools either draw boxes from fixed bar counts or rely on manual identification of consolidation, leaving the trader to judge whether the structure is genuine, where volume has concentrated, and whether a move beyond the edge is a breakout or a deviation. This framework closes that gap by validating every range against swing structure, profiling the volume inside it automatically, separating rejected excursions from accepted breaks through a consecutive-close requirement, and converting each accepted break into a position plan sized from the range itself.
Three core principles guide the design:
This shifts range analysis from visual consolidation spotting into a structured system where detection, internal volume distribution, edge behavior, and breakout planning are evaluated together.
Theoretical Foundation
The indicator combines pivot-based swing detection with an alternating swing memory, multi-window range candidate evaluation with clustering, width, span, and rotation filters, averaged swing prices for edge placement, adaptive edge refinement from subsequent touches, a proportional-overlap volume profile with point of control identification, ATR-buffered consecutive-close breakout confirmation, excursion tracking for deviation detection, and range-height position projection.
Swing highs and lows are stored as an alternating sequence. When two consecutive swings occur on the same side, they merge into the more extreme of the two, ensuring the memory reflects genuine rotations between highs and lows. Range detection evaluates progressively larger windows of the most recent swings, from the minimum number required by the touch and rotation settings up to the full swing memory. For each window, the range top is the average of its swing highs and the range bottom is the average of its swing lows. A window qualifies only when both edges meet the touch requirement, the swing prices on each edge cluster within the Edge Stability ATR tolerance, the width falls between the minimum and maximum ATR limits, the swings span the minimum number of bars, and the number of rotations meets the minimum. The largest qualifying window defines the range.
Four internal systems operate in tandem:
This design ensures that range detection, internal volume structure, edge behavior, and breakout planning operate from a single consistent structural reference.
How It Works
Range Profile Structure evaluates price through a sequence of detection, profiling, and resolution processes:
Together, these elements form a continuously updating range framework that combines structural validation, internal volume distribution, edge behavior tracking, and automated breakout planning.
Interpretation
Range Profile Structure should be interpreted as a validated consolidation map with an attached breakout planning layer:
Range gradient, volume profile, edge touches, and deviation behavior collectively communicate more consolidation and breakout context than any element in isolation.
Signal Logic & Visual Cues
Range Profile Structure presents three primary event types:
Breakout confirmation and deviation tracking use confirmed bar closes only, so these events do not change intrabar once the bar has closed.
Alert generation covers range breakouts, range breakdowns, and high and low deviations for systematic monitoring workflows. The active range high and low are also available in the data window.
Strategy Integration
Range Profile Structure fits within range trading, breakout trading, and volume-based auction approaches:
Technical Implementation Details
Optimal Application Parameters
Timeframe Guidance:
Suggested Baseline Configuration:
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, swing structure frequency, volume data quality, and preferred range sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Reduced Effectiveness:
Integration Guidelines
Disclaimer
Range Profile Structure [BOSWaves] is a professional-grade range detection, volume profiling, and breakout planning tool. It uses swing-validated range construction with consecutive-close breakout confirmation and range-derived position projection but does not predict future price movements. Results depend on market conditions, instrument consolidation characteristics, volume data quality, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, structural analysis, and comprehensive risk management.
Overview
Range Profile Structure [BOSWaves] is a swing-validated range detection system that identifies consolidation phases from clustered, alternating swing highs and lows, builds a volume profile inside each detected range, tracks failed excursions beyond the range edges as deviations, and automatically generates a structured position framework when price confirms a breakout or breakdown with consecutive closes beyond the range.
Instead of drawing ranges from fixed lookback windows or arbitrary high and low values, each range is constructed only when recent swing structure satisfies a set of measurable conditions: enough touches on each edge, enough alternating rotations between them, tight clustering of the swing prices that form each edge, a minimum span in bars, and a width that falls within ATR-based limits. Once active, the range edges adapt to new swings that touch them, the volume profile accumulates every bar's volume across price rows inside the range, and the point of control marks the price level where the most volume has traded.
This creates a range framework that bridges consolidation detection, volume distribution analysis, and breakout execution within a single indicator. The range gradient and edge lines define the structure, the volume profile reveals where participation has concentrated inside it, deviation markers record excursions that were rejected back into the range, and the position tool translates each confirmed break into a fully defined trade structure anchored to the range itself.
Price is therefore evaluated not just for whether it is inside or outside a range, but for where volume has accepted price within that range, whether excursions beyond its edges are being rejected or accepted, and what structured risk and reward a confirmed break offers.
Conceptual Framework
Range Profile Structure is founded on the principle that a trading range should be defined by repeated, measurable rotation between stable boundaries rather than by a visual impression of sideways price action, and that the volume traded inside the range and the behavior of price at its edges determine how the range is most likely to resolve.
Traditional range tools either draw boxes from fixed bar counts or rely on manual identification of consolidation, leaving the trader to judge whether the structure is genuine, where volume has concentrated, and whether a move beyond the edge is a breakout or a deviation. This framework closes that gap by validating every range against swing structure, profiling the volume inside it automatically, separating rejected excursions from accepted breaks through a consecutive-close requirement, and converting each accepted break into a position plan sized from the range itself.
Three core principles guide the design:
- A range should only be recognized when alternating swing highs and lows cluster tightly around two stable edges, with enough touches, rotations, span, and width to confirm genuine two-sided balance rather than a brief pause in trend.
- The internal structure of a range should be described by where volume has traded within it, so that high-participation levels and the point of control can be distinguished from prices that were only briefly visited.
- A move beyond the range should be classified by acceptance, distinguishing excursions that close back inside as deviations from moves that hold beyond the edge for consecutive closes as confirmed breaks, with each confirmed break immediately translated into a defined position structure.
This shifts range analysis from visual consolidation spotting into a structured system where detection, internal volume distribution, edge behavior, and breakout planning are evaluated together.
Theoretical Foundation
The indicator combines pivot-based swing detection with an alternating swing memory, multi-window range candidate evaluation with clustering, width, span, and rotation filters, averaged swing prices for edge placement, adaptive edge refinement from subsequent touches, a proportional-overlap volume profile with point of control identification, ATR-buffered consecutive-close breakout confirmation, excursion tracking for deviation detection, and range-height position projection.
Swing highs and lows are stored as an alternating sequence. When two consecutive swings occur on the same side, they merge into the more extreme of the two, ensuring the memory reflects genuine rotations between highs and lows. Range detection evaluates progressively larger windows of the most recent swings, from the minimum number required by the touch and rotation settings up to the full swing memory. For each window, the range top is the average of its swing highs and the range bottom is the average of its swing lows. A window qualifies only when both edges meet the touch requirement, the swing prices on each edge cluster within the Edge Stability ATR tolerance, the width falls between the minimum and maximum ATR limits, the swings span the minimum number of bars, and the number of rotations meets the minimum. The largest qualifying window defines the range.
Four internal systems operate in tandem:
- Swing and Range Detection Engine: Confirms swing highs and lows with the configured swing length, maintains an alternating swing memory with same-side merging, and evaluates swing windows against touch, rotation, clustering, span, and width conditions to detect a new range whenever no range is active and the cooldown has expired.
- Adaptive Edge System: Monitors new swings that form within the stability tolerance of an active edge, shifts that edge toward the new swing by the configured adaptation fraction, increments the edge touch count, and strengthens the edge line opacity as touches accumulate.
- Volume Profile Engine: Distributes each bar's volume across the profile rows in proportion to how much of the bar's high-low range overlaps each row, counting only the portion inside the range. The profile is rebuilt whenever an edge adapts and updated incrementally on every other bar, with the point of control placed at the highest-volume row.
- Breakout and Deviation System: Counts consecutive confirmed closes beyond the ATR buffer on each side, tracks the extreme of every excursion outside the range, records a deviation when price closes back inside, and resolves the range as a breakout or breakdown once the required number of consecutive closes is reached, generating the break tag and position tool.
This design ensures that range detection, internal volume structure, edge behavior, and breakout planning operate from a single consistent structural reference.
How It Works
Range Profile Structure evaluates price through a sequence of detection, profiling, and resolution processes:
- Swing Detection: Swing highs and lows are confirmed when a bar's high or low is the extreme across the configured swing length on both sides, introducing a confirmation delay equal to the swing length.
- Swing Memory: Confirmed swings are stored as an alternating sequence up to the configured memory size. A new swing on the same side as the previous one replaces it only if it is more extreme.
- Range Candidate Evaluation: Windows of the most recent swings are tested in increasing size. Each window's top and bottom are the averages of its swing highs and lows, and the window must pass the touch, rotation, clustering, span, and width conditions to qualify.
- Range Activation: The largest qualifying window becomes the active range, starting at its oldest swing. Only one range is active at a time, and detection is paused until the current range resolves and the cooldown period has passed.
- Edge Adaptation: While the range is active, any new swing that forms within the stability tolerance of an edge shifts that edge toward the swing by the edge adaptation fraction and adds a touch to that edge.
- Volume Profiling: Volume from the range start onward is distributed across the profile rows by price overlap. The profile is drawn from the right side of the range, with each row's width and opacity scaled by its volume relative to the highest-volume row.
- Point of Control: The row with the highest accumulated volume is marked with a line spanning the full width of the range.
- Break Counting: On each confirmed bar, a close above the range top plus the ATR break buffer increments the upside count, and a close below the range bottom minus the buffer increments the downside count. Any close that fails the condition resets that side's count to zero.
- Deviation Detection: The first close beyond the buffer starts tracking an excursion and its most extreme price. If price then closes back inside the range before a break is confirmed, a deviation marker is placed at the excursion extreme.
- Breakout Confirmation: When consecutive closes beyond the buffer reach the Break Acceptance Closes setting, the range resolves as a breakout or breakdown. The range is frozen in place and its profile takes on the breakout color.
- Position Projection: On a confirmed break, entry is placed at the broken edge, the stop at the opposite edge, and three take profit levels at the configured multiples of the range height beyond entry, with reward and risk zones extending forward for the configured position width.
- Range Expiry: If Maximum Range Age is set and the range reaches that age without a confirmed break, it is closed in the neutral profile color without a position tool.
- Reset: After a range resolves, the swing memory is cleared and the cooldown begins, so the next range must be built from fresh swing structure.
Together, these elements form a continuously updating range framework that combines structural validation, internal volume distribution, edge behavior tracking, and automated breakout planning.
Interpretation
Range Profile Structure should be interpreted as a validated consolidation map with an attached breakout planning layer:
- Range Gradient: The layered fill inside each range intensifies toward the edges, using the bearish color in the upper half and the bullish color in the lower half. Active ranges are drawn with stronger intensity, while completed ranges fade to a lighter historical style.
- Upper Edge (Red/Pink): The averaged level of the swing highs forming the range top. The line becomes more opaque as additional touches are recorded, indicating a more frequently tested boundary.
- Lower Edge (Green): The averaged level of the swing lows forming the range bottom. The line becomes more opaque as additional touches are recorded.
- Volume Profile: Horizontal rows extending from the right side of the range show where volume has traded within it. Wider, more opaque rows mark high-participation prices, while narrow, faint rows mark prices that traded with little volume. The profile is drawn in the neutral profile color while the range is active and takes on the breakout, breakdown, or neutral color once the range resolves.
- Point of Control: The line across the range at the highest-volume row, representing the price where the most volume has been accepted during the range.
- Equilibrium: When enabled, the dotted line at the midpoint between the range edges.
- Candle Coloring: While a range is active, candles shift from the bullish color near the range low through the neutral profile color at mid-range to the bearish color near the range high, reflecting position within the range. Candles that close outside the range take the full bullish or bearish color.
- Deviation Markers (◆): Red/pink diamonds mark the extreme of excursions above the range that closed back inside. Green diamonds mark the extreme of excursions below the range that closed back inside.
- Breakout and Breakdown Tags: Labels marking the bar where consecutive closes confirmed a break above or below the range.
- Position Tool: The entry line at the broken edge, a dashed stop line at the opposite edge, dotted TP1 and TP2 lines, a solid TP3 line, a reward zone from entry to TP3, and a risk zone from entry to stop, each labeled when position labels are enabled.
- Completed Ranges: Resolved ranges remain on the chart with their profile, break tag, and position tool, up to the configured number of completed ranges.
Range gradient, volume profile, edge touches, and deviation behavior collectively communicate more consolidation and breakout context than any element in isolation.
Signal Logic & Visual Cues
Range Profile Structure presents three primary event types:
- Breakout (BREAKOUT ↑): The required number of consecutive confirmed closes above the range top plus the ATR buffer, resolving the range bullish and generating a long position tool with entry at the range top and stop at the range bottom.
- Breakdown (BREAKDOWN ↓): The required number of consecutive confirmed closes below the range bottom minus the ATR buffer, resolving the range bearish and generating a short position tool with entry at the range bottom and stop at the range top.
- Range Deviations (◆): Excursions that closed beyond the buffer and then closed back inside the range before a break was confirmed, marked at the most extreme price reached during the excursion.
Breakout confirmation and deviation tracking use confirmed bar closes only, so these events do not change intrabar once the bar has closed.
Alert generation covers range breakouts, range breakdowns, and high and low deviations for systematic monitoring workflows. The active range high and low are also available in the data window.
Strategy Integration
Range Profile Structure fits within range trading, breakout trading, and volume-based auction approaches:
- Range Rotation Trading: While a range is active, use the lower edge and the bullish-colored lower half as areas of interest for longs and the upper edge and bearish-colored upper half for shorts, with the opposite edge or point of control as reference targets.
- Deviation Fades: Treat deviation markers as evidence that an excursion beyond the range was rejected. A deviation above the range suggests failed buying beyond the high, while a deviation below suggests failed selling beyond the low, often supporting a rotation back toward the point of control or opposite edge.
- Breakout Execution: Use the position tool as a structured plan on confirmed breaks, with entry at the broken edge on a retest, invalidation at the opposite edge, and staged exits at TP1, TP2, and TP3.
- Point of Control Context: Use the point of control as the range's center of acceptance. Price holding away from it toward one edge before a break can indicate building pressure in that direction.
- Profile Shape Assessment: Compare where volume concentrates within the range. A profile weighted toward one edge indicates where the market has been accepting price and can provide context for the likely breakout side.
- Multi-Timeframe Range Alignment: Use higher-timeframe ranges and their resolution as directional context, engaging with lower-timeframe breakouts that align with the higher-timeframe break direction.
Technical Implementation Details
- Swing Engine: Pivot-based swing detection; alternating swing memory with same-side merging toward the more extreme price; memory cleared after each range resolves
- Range Detection: Multi-window evaluation of recent swings; averaged swing prices for edge placement; touch, rotation, clustering, span, and ATR width filters; largest qualifying window selected; single active range with cooldown between ranges
- Edge Adaptation: Fractional edge shift toward new swings within the stability tolerance; touch counting with touch-scaled edge opacity
- Volume Profile: Proportional-overlap volume distribution across configurable rows; full rebuild on edge changes and incremental update on other bars; profile lookback limited to 1500 bars; point of control at the highest-volume row
- Breakout System: ATR-buffered consecutive confirmed-close acceptance; excursion extreme tracking; deviation recording on a close back inside; optional maximum range age for neutral expiry
- Position Tool: Entry at the broken edge; stop at the opposite edge; three take profit levels at range-height multiples; reward and risk zones with optional labels
- Visualization: Configurable multi-layer edge-weighted gradient; touch-scaled edge lines; right-anchored volume profile; point of control and optional equilibrium lines; position-in-range candle gradient; deviation diamonds; break tags
- History Management: Configurable number of completed ranges retained with oldest-first removal; separate configurable limit for deviation markers
Optimal Application Parameters
Timeframe Guidance:
- 1 - 5 min: Intraday consolidation detection with shorter swing length and lower minimum span to capture short balance phases and session breakouts
- 15 - 60 min: Session-level range analysis with balanced swing length and moderate edge stability for well-defined ranges across typical session rotations
- 4H - Daily: Swing-level range detection with longer swing length, larger minimum span, and more break acceptance closes for higher-timeframe balance areas and more reliable breakout confirmation
Suggested Baseline Configuration:
- Swing Length: 5
- Swing Memory: 10
- ATR Length: 14
- Touches Per Edge: 2
- Minimum Rotations: 3
- Minimum Range Span: 8
- Edge Stability ATR: 0.30
- Minimum Width ATR: 1.0
- Maximum Width ATR: 6.0
- Edge Adaptation: 0.20
- Maximum Range Age: 0 (disabled)
- Profile Rows: 14
- Profile Width: 40%
- Break Buffer ATR: 0.10
- Break Acceptance Closes: 2
- TP1 / TP2 / TP3: 0.5 / 1.0 / 2.0
- Completed Ranges: 10
- New Range Cooldown: 4
- Range Candle Colors: Enabled (requires disabling original chart candles in chart settings)
- Range Volume Profile: Enabled
- Point of Control: Enabled
- Breakout Position Tool: Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, swing structure frequency, volume data quality, and preferred range sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
- Too few ranges detected: Increase Edge Stability ATR so swings can cluster more loosely, reduce Minimum Rotations or Minimum Range Span, or widen the Minimum and Maximum Width ATR limits.
- Too many weak ranges: Increase Touches Per Edge or Minimum Rotations to require more rotation between the edges, decrease Edge Stability ATR for tighter clustering, or increase Minimum Range Span.
- Ranges too narrow or too wide: Adjust Minimum Width ATR and Maximum Width ATR to restrict detection to consolidation sizes that are meaningful for the instrument and timeframe.
- Edges drifting too much: Decrease Edge Adaptation toward 0 to keep the edges fixed at their detected levels.
- Edges not adapting to new structure: Increase Edge Adaptation toward 0.50 so new touches pull the edges further toward the latest swings.
- False breakouts: Increase Break Acceptance Closes or Break Buffer ATR to require stronger acceptance beyond the edge. More excursions will then be classified as deviations instead of breaks.
- Breakouts confirmed too late: Decrease Break Acceptance Closes toward 1 or reduce Break Buffer ATR for faster confirmation, at the cost of more false breaks.
- Ranges lasting too long: Set Maximum Range Age to close ranges that fail to resolve within a defined number of bars.
- New range forming immediately after a break: Increase New Range Cooldown to delay detection after a range resolves.
- Profile too coarse or too detailed: Adjust Profile Rows between 8 and 16 to change the resolution of the volume distribution.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
- Balanced, rotational markets where price repeatedly tests stable highs and lows, producing well-validated ranges with clear edges
- Instruments with reliable volume data, where the profile and point of control accurately reflect participation inside the range
- Breakout environments where consolidation is followed by sustained directional expansion that reaches the projected take profit levels
- Markets prone to liquidity sweeps beyond range edges, where deviation tracking separates rejected excursions from genuine breaks
Reduced Effectiveness:
- Strong trending markets with few alternating swings, where the rotation and clustering conditions are rarely met and ranges are infrequent
- Instruments without volume data, where the profile and point of control cannot be calculated and only the structural range remains
- Irregular, wide-swinging markets where swing prices fail to cluster within the stability tolerance, preventing valid edge formation
- Gap-heavy or news-driven instruments where breaks occur through gaps, placing price far from the projected entry at the broken edge
- Very low volatility environments where the ATR-based width minimum excludes otherwise valid small consolidations
Integration Guidelines
- Confluence: Combine with BOSWaves trend, momentum, or order flow tools to assess the likely breakout direction and validate range rotation trades within broader market context
- Touch Assessment: Note the opacity of each edge line. Edges with more recorded touches represent more heavily tested boundaries, which can make a confirmed break through them more significant.
- Deviation Context: Evaluate recent deviations before trading a breakout. Repeated deviations on one side followed by a break on the opposite side can indicate liquidity was taken before the move.
- Position Tool Discipline: Treat the position tool as a structured reference rather than an automated trade. Entry at the broken edge assumes a retest, and the stop at the opposite edge reflects full range invalidation.
- Volume Awareness: Use the point of control and profile shape as context for both range trades and breakouts, recognizing that the profile reflects accumulated participation within the range rather than future direction.
Disclaimer
Range Profile Structure [BOSWaves] is a professional-grade range detection, volume profiling, and breakout planning tool. It uses swing-validated range construction with consecutive-close breakout confirmation and range-derived position projection but does not predict future price movements. Results depend on market conditions, instrument consolidation characteristics, volume data quality, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, structural analysis, and comprehensive risk management.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.