PROTECTED SOURCE SCRIPT

JXMJXRS - Volume Shift

59
JXMJXRS - Volume Shift is a volume-based indicator designed to detect significant volume spikes that occur directly after periods of price compression. These moments often precede breakouts, traps, or liquidity events—especially in crypto markets. The indicator is optimized for use on low to mid-range timeframes such as 15-minute to 4-hour charts.

The logic is simple and effective: if current volume exceeds a dynamically calculated percentile of recent volume history, and recent price candles have shown a period of reduced movement (low body size), a signal is plotted below the candle. This helps filter out random volume surges and highlights moments that may reflect meaningful market participation.

How it works:

Volume Spike Detection
The indicator compares the current candle’s volume to a historical window. A volume spike is confirmed when the current volume exceeds the specified percentile (e.g., 80th percentile) of volume from the previous N candles.

Candle Body Compression
It calculates the average body size of recent candles (short-term) and compares it to a longer-term body average. If the short-term bodies are smaller by a configurable ratio, the price is considered compressed—suggesting low activity before the spike.

Signal Logic
When both conditions are met on the same candle, the indicator displays a “!” label below the bar. This does not indicate a buy or sell signal, but rather marks a moment worth observing for potential expansion in volatility.

Settings:

Volume Lookback:
The number of previous candles used to evaluate the volume percentile. A higher value makes the spike condition stricter.

Volume Percentile (0–100):
Sets the threshold for abnormal volume. For example, 80 means “current volume must be higher than 80% of the past X candles.”

Short-Term Body Avg:
Number of candles used to measure recent candle body size, representing the current price activity range.

Long-Term Body Avg:
Baseline window to calculate typical body size for comparison.

Compression Ratio:
The short-term body average must be less than this ratio times the long-term average to be considered compressed. Lower values increase the compression requirement.

This tool is designed to enhance market awareness by detecting moments of sudden volume expansion following quiet market conditions. It should be used in assist with your broader trading system or strategy.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.