OPEN-SOURCE SCRIPT
Flow Pressure Zones [BOSWaves]

Volume Flow Zones [BOSWaves] - Body-Ratio Volume Flow Scoring with Baseline Fuel Visualization and Counter-Trend Reversal Zone Detection
Overview
Volume Flow Zones [BOSWaves] is a volume-weighted flow intensity system that scores each bar by the combined strength of its body-to-range ratio and volume participation relative to its rolling average, where baseline fuel candle height, price candle gradient intensity, and reversal zone placement are all driven by this normalized flow score rather than fixed thresholds or arbitrary indicator crossovers.

Instead of relying on raw volume or price direction alone, the flow score combines how convincingly price moved within the bar's range with how significant the bar's volume was relative to recent history, producing a single normalized conviction reading that reflects both the directional commitment and the participation weight behind each bar. This score then drives every visual layer of the indicator simultaneously, from the height of the fuel candles on the baseline to the brightness of the price candle coloring to the conditions required for a reversal zone to be planted.
This creates a flow monitoring framework that communicates momentum quality continuously rather than at discrete signal events. The baseline fuel candles grow and shrink with the flow score on every bar, the glow around the WMA baseline intensifies during high-flow periods, price candles brighten toward full trend color during strong participation and dim toward neutral during weak flow, and yellow reversal candles fire when meaningful counter-trend flow appears against the prevailing trend direction, at which point a forward-projecting reversal zone is planted at the bar's extreme.
Price is therefore evaluated not just for direction relative to the baseline but for the quality and intensity of the flow supporting that direction on every bar.
Conceptual Framework
Volume Flow Zones is founded on the principle that directional price movement carries meaningfully different conviction depending on how decisively price closed within the bar's range and how significantly volume participated relative to recent norms, and that these two dimensions together produce a more reliable flow quality reading than either dimension alone.
Traditional momentum tools measure direction through crossovers or oscillator levels that treat all bars equally regardless of whether a move was driven by decisive high-volume conviction or by drifting low-volume noise. This framework replaces uniform direction measurement with a per-bar flow quality score that distinguishes between genuine momentum and low-conviction price movement, encoding that distinction across every visual element so that chart reading reflects real participation dynamics rather than mechanical indicator states.
Three core principles guide the design:
This shifts trend analysis from binary directional state monitoring into continuous flow quality measurement where visual intensity across every chart layer communicates conviction strength in real time.
Theoretical Foundation
The indicator combines WMA-based trend direction, body-to-range ratio measurement, volume SMA normalization, flow score derivation with rolling normalization, reversal detection through close position and volume threshold testing, and an ATR-scaled fuel candle system that projects flow intensity visually from the baseline.
The WMA baseline provides a weighted directional reference that gives greater importance to recent price activity, establishing the trend context that determines fuel candle positioning and reversal direction qualification. The body ratio measures what fraction of the bar's total range the body occupies, with higher ratios indicating more decisive directional commitment. Volume normalization divides each bar's volume by its SMA baseline and caps the result at three, preventing extreme volume spikes from overwhelming the score. The raw flow score multiplies body ratio by normalized volume, and a rolling highest-lowest normalization converts the raw score to a 0-1 range that adapts to the instrument's typical flow distribution. Reversal detection tests close position within the range, bar direction, and volume normalization simultaneously, requiring all three conditions to be met before a reversal event qualifies.
Four internal systems operate in tandem:
This design allows every chart element to reflect the current flow score simultaneously while the reversal zone system independently tracks and maps the structural locations where meaningful counter-trend flow appeared.
How It Works
Volume Flow Zones evaluates price through a sequence of flow-aware scoring and visualization processes:
Together, these elements form a continuously updating flow monitoring system where baseline fuel candles, price candle gradients, and reversal zones all derive from the same underlying flow score, producing a visually unified conviction map across every chart element.
Interpretation
Volume Flow Zones should be interpreted as a flow quality visualization system with structural counter-trend zone mapping:
Fuel candle height dynamics, price candle brightness, yellow reversal identification, and zone proximity collectively provide more flow intelligence than any element in isolation.
Signal Logic & Visual Cues
Volume Flow Zones presents two primary reversal signal types alongside continuous flow intensity monitoring:
Zone cooldown enforcement prevents multiple zones from planting in rapid succession, spacing reversal references to only the most significant qualifying events within each cooldown window.
Alert generation covers bullish and bearish reversal flow events and WMA bullish and bearish flips for systematic trend monitoring workflows.
Strategy Integration
Volume Flow Zones fits within flow-informed trend-following and counter-trend monitoring 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, volume behavior, and preferred signal density, 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
Volume Flow Zones [BOSWaves] is a professional-grade flow quality analysis and counter-trend monitoring tool. It uses body-ratio volume flow scoring with rolling normalization and reversal zone detection but does not predict future price movements. Results depend on market conditions, instrument volume characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates price structure, order flow context, and comprehensive risk management.
Overview
Volume Flow Zones [BOSWaves] is a volume-weighted flow intensity system that scores each bar by the combined strength of its body-to-range ratio and volume participation relative to its rolling average, where baseline fuel candle height, price candle gradient intensity, and reversal zone placement are all driven by this normalized flow score rather than fixed thresholds or arbitrary indicator crossovers.
Instead of relying on raw volume or price direction alone, the flow score combines how convincingly price moved within the bar's range with how significant the bar's volume was relative to recent history, producing a single normalized conviction reading that reflects both the directional commitment and the participation weight behind each bar. This score then drives every visual layer of the indicator simultaneously, from the height of the fuel candles on the baseline to the brightness of the price candle coloring to the conditions required for a reversal zone to be planted.
This creates a flow monitoring framework that communicates momentum quality continuously rather than at discrete signal events. The baseline fuel candles grow and shrink with the flow score on every bar, the glow around the WMA baseline intensifies during high-flow periods, price candles brighten toward full trend color during strong participation and dim toward neutral during weak flow, and yellow reversal candles fire when meaningful counter-trend flow appears against the prevailing trend direction, at which point a forward-projecting reversal zone is planted at the bar's extreme.
Price is therefore evaluated not just for direction relative to the baseline but for the quality and intensity of the flow supporting that direction on every bar.
Conceptual Framework
Volume Flow Zones is founded on the principle that directional price movement carries meaningfully different conviction depending on how decisively price closed within the bar's range and how significantly volume participated relative to recent norms, and that these two dimensions together produce a more reliable flow quality reading than either dimension alone.
Traditional momentum tools measure direction through crossovers or oscillator levels that treat all bars equally regardless of whether a move was driven by decisive high-volume conviction or by drifting low-volume noise. This framework replaces uniform direction measurement with a per-bar flow quality score that distinguishes between genuine momentum and low-conviction price movement, encoding that distinction across every visual element so that chart reading reflects real participation dynamics rather than mechanical indicator states.
Three core principles guide the design:
- Flow quality should be measured by combining body dominance within the bar range with volume significance relative to the rolling average, producing a score that captures both directional decisiveness and participation weight simultaneously.
- The flow score should drive all visual outputs proportionally and continuously, with fuel candle height, price candle brightness, and baseline glow all scaling in real time to the current flow reading rather than switching between fixed states.
- Counter-trend flow events meeting minimum quality thresholds should generate forward-projecting reversal zones anchored to the bar extreme where the opposing flow appeared, marking structural reference levels for potential trend exhaustion and reversal.
This shifts trend analysis from binary directional state monitoring into continuous flow quality measurement where visual intensity across every chart layer communicates conviction strength in real time.
Theoretical Foundation
The indicator combines WMA-based trend direction, body-to-range ratio measurement, volume SMA normalization, flow score derivation with rolling normalization, reversal detection through close position and volume threshold testing, and an ATR-scaled fuel candle system that projects flow intensity visually from the baseline.
The WMA baseline provides a weighted directional reference that gives greater importance to recent price activity, establishing the trend context that determines fuel candle positioning and reversal direction qualification. The body ratio measures what fraction of the bar's total range the body occupies, with higher ratios indicating more decisive directional commitment. Volume normalization divides each bar's volume by its SMA baseline and caps the result at three, preventing extreme volume spikes from overwhelming the score. The raw flow score multiplies body ratio by normalized volume, and a rolling highest-lowest normalization converts the raw score to a 0-1 range that adapts to the instrument's typical flow distribution. Reversal detection tests close position within the range, bar direction, and volume normalization simultaneously, requiring all three conditions to be met before a reversal event qualifies.
Four internal systems operate in tandem:
- Flow Score Engine: Calculates body ratio from open-close range divided by high-low range, normalizes volume against its SMA baseline, multiplies the two to produce raw flow, then normalizes the raw flow against its rolling highest and lowest values to produce the final 0-1 score that drives all downstream visual systems.
- Baseline Fuel Candle System: Positions ATR-scaled candles above the baseline for bearish trends and below for bullish trends, scaling their height proportionally to the current flow score so that fuel candle length grows and shrinks with each bar's flow intensity and coloring intensifies with a power-transformed opacity gradient.
- Price Candle Gradient System: Colors chart candles from a dimmed version of the trend color at low flow scores to full saturation at high flow scores using a power-transformed gradient, with yellow override on any bar where counter-trend reversal conditions are met regardless of trend state.
- Flow Reversal Zone Engine: Monitors for qualifying counter-trend flow events meeting close position, direction, and volume thresholds above the minimum flow score, plants ATR-scaled zones with dashed midlines at the bar extreme on confirmed qualifying bars subject to cooldown enforcement, extends zones forward until price closes through them on two consecutive bars.
This design allows every chart element to reflect the current flow score simultaneously while the reversal zone system independently tracks and maps the structural locations where meaningful counter-trend flow appeared.
How It Works
Volume Flow Zones evaluates price through a sequence of flow-aware scoring and visualization processes:
- WMA Baseline Calculation: The Weighted Moving Average is calculated over the configured length, with trend direction determined by whether close is above or below the baseline on each bar.
- Body Ratio Measurement: The absolute difference between close and open is divided by the high-low range to produce a 0-1 body ratio, with higher values indicating bars where price moved decisively in one direction relative to its total range.
- Volume Normalization: Raw volume is divided by the Volume SMA baseline and capped at 3.0, producing a score that reflects whether the bar's participation was below average, average, or significantly above average relative to recent history.
- Raw Flow Calculation: Body ratio is multiplied by normalized volume to combine directional decisiveness with participation weight into a single raw flow reading.
- Rolling Normalization: The raw flow is normalized against its highest and lowest values over the configured lookback window, producing a 0-1 score that adapts to the instrument's typical flow range and maintains consistent visual scaling across different volatility regimes.
- Reversal Condition Testing: Counter-trend pressure is identified when close position within the bar range is below 0.35 on a down-close bar with volume above 1.2 times SMA for bearish pressure, or above 0.65 on an up-close bar with the same volume threshold for bullish pressure. These conditions combined with the flow score threshold and trend direction determine whether a reversal event qualifies.
- Price Candle Coloring: The normalized flow score is power-transformed and mapped to a gradient between a dimmed and full-saturation version of the trend color. Reversal bars override this coloring with full yellow regardless of score or trend direction.
- Fuel Candle Rendering: ATR-scaled open and close prices are calculated from the WMA with the configured offset, with candle height proportional to the flow score. Fuel candles render below the baseline during uptrends and above during downtrends, with opacity power-transformed from the flow score and yellow coloring applied on reversal bars.
- Baseline Glow Rendering: A wide low-opacity version of the WMA line and a thinner core line are plotted with transparency inversely proportional to a smoothed flow average, producing a glow effect that intensifies during sustained high-flow periods.
- Reversal Zone Planting: On confirmed reversal bars satisfying the cooldown requirement, an ATR-scaled zone is planted centered on the bar's low for bullish reversals and high for bearish reversals, with a dashed midline and forward extension. Overlapping same-direction zones are removed before the new zone is added.
- Zone Lifecycle Management: All active zones extend rightward on each bar. When close has been below the zone bottom for two consecutive bars for bullish zones or above the zone top for two consecutive bars for bearish zones, the zone is deleted.
Together, these elements form a continuously updating flow monitoring system where baseline fuel candles, price candle gradients, and reversal zones all derive from the same underlying flow score, producing a visually unified conviction map across every chart element.
Interpretation
Volume Flow Zones should be interpreted as a flow quality visualization system with structural counter-trend zone mapping:
- WMA Baseline: The Weighted Moving Average provides the primary trend reference with a glow that brightens during sustained high-flow periods, providing an immediate visual indicator of whether the current trend is being supported by strong or weak participation.
- Bullish Trend State (Green): Active when close is above the WMA, with fuel candles projecting below the baseline and price candles coloring green with intensity scaling from the flow score.
- Bearish Trend State (Red): Active when close is below the WMA, with fuel candles projecting above the baseline and price candles coloring red with intensity scaling from the flow score.
- Fuel Candle Height: The primary flow intensity indicator, growing with each bar's flow score and shrinking during low-conviction periods. Tall fuel candles indicate strong directional participation. Short or barely visible fuel candles indicate weak flow with low conviction behind the current price movement.
- Fuel Candle Opacity: The transparency of each fuel candle further encodes flow strength, with near-opaque candles representing peak-intensity flow events and highly transparent candles representing low-intensity bars.
- Price Candle Gradient: Price candles brighten toward full trend color saturation at high flow scores and dim toward a muted version of the trend color at low flow scores, providing an immediate bar-level conviction reading directly on the candlestick.
- Yellow Candles: Both the price candle and fuel candle flash yellow on bars where qualifying counter-trend flow is detected, immediately identifying potential exhaustion or reversal events within the current trend.
- Flow Reversal Zones: Horizontal zones with dashed midlines planted at bar extremes where qualifying counter-trend flow appeared, projecting forward as structural reference levels for the price level where opposing flow was significant enough to register. Bullish reversal zones are colored green, bearish reversal zones red.
Fuel candle height dynamics, price candle brightness, yellow reversal identification, and zone proximity collectively provide more flow intelligence than any element in isolation.
Signal Logic & Visual Cues
Volume Flow Zones presents two primary reversal signal types alongside continuous flow intensity monitoring:
- Bullish Reversal (Yellow): Triggered when price closes in the upper portion of the bar's range on an up-close bar with above-average volume during a downtrend, with flow score exceeding the minimum threshold. Plants a bullish reversal zone below the bar and flashes both price and fuel candles yellow.
- Bearish Reversal (Yellow): Triggered when price closes in the lower portion of the bar's range on a down-close bar with above-average volume during an uptrend, with flow score exceeding the minimum threshold. Plants a bearish reversal zone above the bar and flashes both price and fuel candles yellow.
Zone cooldown enforcement prevents multiple zones from planting in rapid succession, spacing reversal references to only the most significant qualifying events within each cooldown window.
Alert generation covers bullish and bearish reversal flow events and WMA bullish and bearish flips for systematic trend monitoring workflows.
Strategy Integration
Volume Flow Zones fits within flow-informed trend-following and counter-trend monitoring approaches:
- Fuel Candle Conviction Reading: Use fuel candle height as a continuous trend health gauge. Consistently tall fuel candles during a trend indicate sustained directional commitment. Progressively shrinking fuel candles within an established trend suggest flow is weakening before any price indicator or crossover confirms the deterioration.
- Yellow Candle Context: Use yellow reversal candles as early warning signals within trends rather than as standalone entry triggers. A single yellow candle mid-trend may indicate temporary absorption. Multiple yellow candles within a short window suggest building counter-trend pressure warranting reduced confidence in continuation.
- Reversal Zone Reference Trading: Use planted reversal zones as structural reference levels where meaningful opposing flow previously appeared. Price returning to these zones encounters the price level where prior counter-trend activity was significant enough to meet the reversal detection criteria.
- WMA Flip Entries: Use WMA direction changes combined with high fuel candle readings immediately following the flip as trend initiation entries, favoring flips that coincide with strong flow scores over flips that occur during low-conviction flow conditions.
- Flow Divergence Detection: Monitor for situations where price is making new highs or lows but fuel candle height is diminishing, indicating that price extension is occurring on weakening flow and increasing the probability of reversal or consolidation.
- Multi-Timeframe Flow Alignment: Apply higher-timeframe WMA direction and fuel candle intensity as directional context filters, engaging with lower-timeframe reversal zones and yellow candle signals only when they align with the broader flow state established on the higher timeframe.
Technical Implementation Details
- Baseline Engine: Weighted Moving Average with configurable length for trend direction and fuel candle anchoring
- Flow Score: Body-to-range ratio multiplied by volume SMA normalization with rolling highest-lowest normalization over configurable lookback
- Reversal Detection: Close position threshold, bar direction, and volume normalization minimum combined with flow score floor and trend direction gating
- Fuel Candles: ATR-scaled height with configurable multiplier and baseline offset, power-transformed opacity gradient, yellow override on reversal bars
- Price Candles: Power-transformed flow gradient from dimmed to saturated trend color with full yellow override on reversal bars
- Baseline Glow: Dual-line wide and narrow WMA plots with transparency inversely proportional to smoothed flow average
- Zone System: Array-managed ATR-scaled zone boxes with dashed midlines, cooldown enforcement, overlap removal, forward extension, and two-bar consecutive close breach invalidation
- Performance Profile: Optimized for real-time execution with configurable zone count cap and array-based lifecycle management
Optimal Application Parameters
Timeframe Guidance:
- 1 - 5 min: Intraday flow monitoring for scalping with shorter WMA and normalization lengths for faster flow score adaptation to intraday momentum shifts
- 15 - 60 min: Session-level trend flow tracking with balanced WMA length and moderate zone cooldown for meaningful reversal zone spacing across typical session moves
- 4H - Daily: Swing-level flow quality monitoring with longer WMA and normalization lookback for sustained flow readings across multi-session directional moves
Suggested Baseline Configuration:
- WMA Length: 80
- Volume SMA: 20
- Normalization Lookback: 80
- Offset (ATR%): 0.4
- Candle Height: 2.0
- Show Reversal Zones: Enabled
- Zone Cooldown: 31
- Max Zones: 3
- Show Fuel Candles: Enabled
- Show Baseline: Enabled
- Show Baseline Glow: Enabled
- Color Price Candles: Enabled (requires disabling original chart candles in chart settings)
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, volume behavior, and preferred signal density, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
- Fuel candles too tall or too short: Adjust Candle Height to scale the maximum fuel candle height relative to ATR. Lower values produce more subtle fuel visualization, higher values produce more prominent height differences between high and low flow bars.
- Fuel candles too close or far from price: Adjust Offset (ATR%) to control the gap between the WMA baseline and the near edge of the fuel candles, adapting visual separation to the instrument's typical ATR range.
- Flow score too reactive: Increase Normalization Lookback to smooth the normalization window, requiring more bars to recalibrate the flow range and reducing sensitivity to short-term volume spikes.
- Flow score too slow to adapt: Decrease Normalization Lookback for faster recalibration of the flow score range, allowing the system to adapt more quickly to changing volatility and volume conditions.
- Too many reversal zones forming: Increase Zone Cooldown to enforce greater bar separation between consecutive zone plants, or reduce Max Zones to limit the total number of active reference levels on the chart.
- Reversal zones too narrow or wide: Adjust Zone Height (ATR×) to scale the vertical size of each reversal zone relative to ATR, calibrating zone thickness to the instrument's typical noise range at the target timeframe.
- WMA too reactive to price: Increase WMA Length for a smoother baseline that filters minor oscillations and reduces frequency of trend direction changes, producing more stable fuel candle positioning and cleaner reversal zone direction assignments.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
- Trending markets with clear directional momentum where fuel candle height builds during impulse phases and provides early warning of conviction decay before price reverses
- Instruments with consistent volume participation where SMA normalization accurately identifies above-average bars and the flow score reliably differentiates high and low conviction moves
- Flow divergence strategies where declining fuel candle height during price extension provides early deterioration signals before conventional indicators confirm reversal
- Counter-trend monitoring approaches where reversal zones mark the precise price levels where meaningful opposing flow appeared for use as structural reference in subsequent analysis
Reduced Effectiveness:
- Choppy, low-volume markets where body ratios are consistently low and volume normalization produces undifferentiated scores, reducing fuel candle height variation and generating frequent yellow candles without meaningful reversal context
- Instruments with highly irregular volume distribution where the SMA normalization baseline is distorted by outlier sessions, producing unreliable flow score rankings across typical bars
- Extremely fast-moving markets where large body ratios are consistently present on almost every bar, compressing the flow score range and reducing the visual differentiation between high and low conviction periods
- Low-ATR instruments where the fuel candle geometry produces visually imperceptible height differences, requiring manual candle height and offset adjustment to produce meaningful visual scaling
- Consolidation and sideways conditions where volume participation is mixed and body ratios are low, producing uniformly short fuel candles and frequent yellow candles without the trend context that makes reversal detection structurally meaningful
Integration Guidelines
- Confluence: Combine with BOSWaves structural tools, order block analysis, or momentum oscillators to validate reversal zone interactions and yellow candle events with broader analytical context
- Fuel Candle Trend Health: Monitor fuel candle height evolution throughout established trends as a continuous conviction health indicator. Progressively shrinking fuel candles during a sustained trend suggest flow deterioration that may precede reversal before price structure confirms the change.
- Yellow Candle Clustering: Single isolated yellow candles within a trend carry less weight than clusters of two or more within a short window. Clusters suggest building counter-trend participation that is approaching the threshold required to challenge the prevailing flow direction.
- Zone Freshness: Prioritize recently planted reversal zones over older ones. Fresh zones reflect current session flow dynamics while older zones may have formed under different volume and volatility conditions that are no longer representative.
- State Discipline: Maintain directional bias aligned with the current WMA trend state until a confirmed WMA direction change occurs. Yellow candles and reversal zones within an established trend are monitoring signals rather than automatic exit triggers and should be interpreted as context rather than directional commands.
Disclaimer
Volume Flow Zones [BOSWaves] is a professional-grade flow quality analysis and counter-trend monitoring tool. It uses body-ratio volume flow scoring with rolling normalization and reversal zone detection but does not predict future price movements. Results depend on market conditions, instrument volume characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates price structure, order flow context, and comprehensive risk management.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.