PATTERNSMART / PROBUILDER ENGINEERING NOTE

ProRealTime Closed-Bar Participation Audit: Relative Volume and Close Location Dual-Filter Signals

Level: Trading Tips | ProRealTime ProBuilder standalone indicator | Complete source included

A large candle with a strong close does not necessarily reflect meaningful participation: the move may occur on thin volume. Likewise, a volume spike does not tell us whether price closed near the top or bottom of its range. This practical ProBuilder indicator evaluates two complementary pieces of evidence—relative volume (RVOL) and close location value (CLV)—and insists that each pass its own threshold. The diagnostic product RVOL × CLV is plotted for exploration, but is never allowed to substitute for the two independent filters. The implementation deliberately references the previous completed bar, avoiding provisional intrabar values.

Why the previous completed bar matters

On a live chart, bar 0 remains unfinished: its high, low, close and cumulative volume can all change before the close. A signal calculated from those values may appear and disappear. Our program uses Open[1], High[1], Low[1], Close[1] and Volume[1] for the sampled bar. Consequently the result becomes visible on the following bar, a deliberate confirmation delay. The historical signal location is not the same as the bar whose OHLC values were assessed. This design avoids depending on a chart-time bar-close setting, but requires readers to interpret the one-bar display offset correctly.

Two filters, two distinct questions

RVOL: was participation elevated relative to its own baseline?

Define RVOL = Volume[1] / Average[20](Volume[2]). The baseline consists of 20 bars ending two bars ago, excluding the sampled completed bar. That exclusion prevents a volume surge from raising its own comparator. For a hypothetical measured volume of 180,000 against a prior mean of 120,000, RVOL = 1.50. This means 1.5 times that historical bar-level average, not a guarantee of directional continuation.

CLV: where did the bar actually close?

For High > Low, CLV = (2 × Close − High − Low) / (High − Low). A close at the high produces +1; at the low, −1; at the midpoint, zero. CLV is a price-location proxy, not actual bid/ask order flow. With High=52.40, Low=50.00 and Close=52.10, the numerator is 104.20−52.40−50.00 = 1.80; dividing by 2.40 yields +0.75. An empty-range bar is skipped rather than creating a division by zero.

ProRealTime Closed-Bar Participation Audit: Relative Volume and Close Location Dual-Filter Signals
Figure 1. Hypothetical completed-bar OHLC, 20-bar volume baseline, and two independent confirmation conditions. Not historical market data.

Worked decision: a score of 1.125 is not the whole rule

The example above gives RVOL=1.50 and CLV=+0.75. With MinRVOL=1.40 and MinAbsoluteCLV=0.65, both tests pass. If the sample candle also closes above its open, it receives a bullish confirmation marker. The signed diagnostic is 1.50 × 0.75 = +1.125. A visual reference level of 1.40 × 0.65 = 0.91 is useful, but it is not the acceptance rule. Consider RVOL=3.00 and CLV=+0.35: their product is 1.05, greater than 0.91, yet the CLV requirement is not met. The program properly declines the bullish signal. For bearish confirmation it requires RVOL ≥1.40, CLV ≤−0.65 and a red sampled candle.

Parameter contract and how to tune it

Parameter / output Default Engineering implication
VolumeLookback 20 Historical volume mean ends before the sampled bar
MinRVOL 1.40 Require at least 1.4 times the prior 20-bar mean
MinAbsoluteCLV 0.65 Demand the close be toward an extreme rather than the center
Pressure RVOL × CLV Signed diagnostic, not a one-number acceptance test
BullMark / BearMark 0 or Pressure Nonzero only if both tests and candle body direction agree
BarIndex guard ≥22 Conservative warm-up for the 20 previous data bars

Raising MinRVOL excludes more everyday bars but can miss the beginning of participation changes. Raising the CLV requirement selects closes nearer the extremes but may omit reversal candles with conspicuous wicks. Depending on the venue and data plan, Volume may represent reported traded volume or quote/tick volume; do not compare dissimilar series as though they were identical. The indicator is a screening aid, not a measurement of actual aggressive buyers or sellers.

Complete ProBuilder indicator source

Create a personal custom indicator in the ProRealTime indicator editor. Paste the entire standalone ProBuilder program below, save, and compile. RETURN appears once at the end and names the displayed series. This is not ProScreener or ProOrder execution code, and it has not been compiled on a live ProRealTime account. Platform-side review and testing remain necessary.

// ProRealTime ProBuilder: closed-bar participation audit
// Indicator, not ProOrder. Built for ordinary bar charts.
// All signals displayed on bar t use completed bar t-1.
// PriorVolumeAverage excludes the measured bar completely.

VolumeLookback = 20
MinRVOL = 1.40
MinAbsoluteCLV = 0.65

// Start each bar with neutral diagnostics.
Pressure = 0
BullMark = 0
BearMark = 0
RelativeVolume = 0
CloseLocation = 0
BullThreshold = MinRVOL * MinAbsoluteCLV
BearThreshold = -BullThreshold

// Require enough history for Volume[2] through Volume[21].
IF BarIndex >= VolumeLookback + 2 THEN
    // Bar [1] is the LAST COMPLETED bar, not the live bar.
    SampleOpen = Open[1]
    SampleHigh = High[1]
    SampleLow = Low[1]
    SampleClose = Close[1]
    SampleVolume = Volume[1]

    // Average of the 20 bars BEFORE the measured closed bar.
    PriorVolumeAverage = Average[VolumeLookback](Volume[2])
    SampleRange = SampleHigh - SampleLow

    IF SampleRange > 0 AND PriorVolumeAverage > 0 THEN
        RelativeVolume = SampleVolume / PriorVolumeAverage
        // CLV is between -1 and +1 for ordinary OHLC data.
        CloseLocation = (2 * SampleClose - SampleHigh - SampleLow) / SampleRange
        // Signed diagnostic, not a substitute for two filters.
        Pressure = RelativeVolume * CloseLocation

        IF RelativeVolume >= MinRVOL THEN
            IF CloseLocation >= MinAbsoluteCLV AND SampleClose > SampleOpen THEN
                BullMark = Pressure
            ELSIF CloseLocation <= -MinAbsoluteCLV AND SampleClose < SampleOpen THEN
                BearMark = Pressure
            ENDIF
        ENDIF
    ENDIF
ENDIF

// Markers plot on the NEXT bar because only bar [1] is used.
// Zero is neutral and does not meet the two-factor signal rule.
RETURN Pressure AS "RVOL x CLV" COLOURED(30,90,204), BullMark AS "Bull confirmed" COLOURED(22,144,97), BearMark AS "Bear confirmed" COLOURED(206,65,69), BullThreshold AS "Bull reference" COLOURED(108,125,147), BearThreshold AS "Bear reference" COLOURED(108,125,147)

Engineering details hidden behind the plotted values

Each evaluation starts with neutral outputs, so an unqualified bar leaves no stale marker behind. The lookback guard ensures historical data exists. Average[VolumeLookback](Volume[2]) excludes the sampled bar and the currently forming bar, while zero baseline volume and zero high-low range are explicitly rejected. A valid relative volume number does not trigger alone: CLV must also satisfy an absolute directional threshold, and Close[1] versus Open[1] must agree with that direction.

The blue signed Pressure output provides a useful diagnostic continuum. The green and red marker series appear only when both independent tests pass. The gray threshold products are reference guides: they make a comparison legible, but are intentionally not used as a single decision limit. Because the sample bar is bar [1], a historical marker on bar t describes bar t−1. An automated system derived from this example must never backdate that signal to a timestamp before the bar was confirmed.

Installation and reproducible validation checklist

  1. Open the ProRealTime custom indicator creation window, paste the complete ProBuilder code, save and compile; inspect any version-specific diagnostics.
  2. Choose a chart with usable volume data and document whether it is real traded volume or quote/tick volume.
  3. Manually select a closed candle, record its OHLCV and the 20 earlier volume observations, and recalculate both filters independently.
  4. Use the hypothetical 180k/120k, High 52.4, Low 50.0, Close 52.1 case to reproduce RVOL=1.5 and CLV=0.75.
  5. Test a counterexample with RVOL=3.0 and CLV=0.35: the product should be high while the bullish marker stays absent.
  6. Watch a live, unfinished candle and confirm that plotted results reference the previous completed candle, never the evolving live one.
  7. Verify zero-volume and zero-range handling, insufficient history, session changes and instruments with different volume definitions.

Failure modes and risk boundaries

Volume semantics: tick volume is not actual central exchange volume. Intraday seasonality: a generic 20-bar mean ignores strong open/close volume patterns. Thresholds: a high score cannot compensate for one failing filter. Fast markets: event-driven volatility can pass both tests while producing severe adverse execution and immediate reversals. Confirmation delay: visible output belongs to the previous bar; treating it as same-bar foreknowledge introduces backtest lookahead bias.

Interested in this free indicator or trading idea and want to customize the volume baseline, trading-session logic, or thresholds? Our Custom Trading Software Development Services can help adapt and extend the design for your requirements.

Risk disclosure: The numerical and chart examples are hypothetical and are not historical performance claims. This indicator does not place trades, size positions or manage exits. Compile and review on the target platform, then test independently before any live deployment. Trading involves possible loss.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.