OPEN-SOURCE SCRIPT

Volume Price Momentum [NJ]

1 916
✧ OVERVIEW ✧

Volume Price Momentum combines relative volume and price strength into a single momentum score.

The indicator compares current volume and closing price with their recent values, combines both measurements, and smooths the result to identify shifts between bullish and bearish conditions.

A range filter is used to prevent new buy signals while the market is detected as ranging.
imagen

✧ SETTINGS ✧

Show Buy/Sell Labels?
Shows or hides BUY and SELL labels when the signal changes direction.

Show Colored Candles?
Shows or hides candle coloring based on the current signal.

Show Range Status?
Shows or hides the range status table in the top-right corner of the chart.

Buy Threshold
Controls the score required for the indicator to switch to a buy signal.

Sell Threshold
Controls the score required for the indicator to switch to a sell signal.

Volume Length
Controls how much recent volume history is used to measure relative volume strength.

Price Length
Controls how much recent price history is used to measure relative price strength.

Smoothing Length
Controls how much the final score is smoothed.

✧ HOW IT WORKS ✧

Volume Strength
Current volume is ranked against recent volume values using percentile ranking. Higher values indicate that current volume is relatively high compared with the selected lookback period.

Price Strength
The current closing price is ranked against recent closing prices in the same way. Higher values indicate that price is trading relatively high within the selected lookback period.

Combined Score
The volume and price rankings are averaged into a single score and then smoothed using a moving average.

Signal Logic
A buy signal is activated when the score reaches or exceeds the Buy Threshold, provided the market is not currently ranging.
A sell signal is activated when the score falls below the Sell Threshold.

Range Filter
The indicator uses Range Detector [NJ] to identify ranging market conditions:
Range Detector [NJ]

While a range is active, new buy signals are blocked. The range status table displays whether a range is currently detected.

✧ VISUALIZATION ✧

The oscillator changes color based on the active signal:
Green represents a buy condition.
Red represents a sell condition.

The same colors can optionally be applied directly to the chart candles.

BUY and SELL labels are displayed only when the active signal changes direction.

The range status table shows:
✓ when a range is detected.
✕ when no range is detected.

✧ USAGE ✧

Volume Price Momentum can be used to identify:

Bullish and bearish momentum shifts
Changes in relative volume and price strength
Potential trend transitions
Momentum confirmation
Ranging market conditions
Additional confirmation for other technical analysis

The indicator is designed to provide directional market context rather than predict exact tops or bottoms.

As with any technical indicator, it is best used alongside other forms of analysis rather than as a standalone entry or exit signal.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.