OPEN-SOURCE SCRIPT

Vacuum Candles [XrayAlgo]

170
The Vacuum Candles indicator helps traders identify inefficient price movements—where the price moves significantly but lacks sufficient volume to support it. These inefficiencies may signal weak trends, potential reversals, or false breakouts/breakdowns.

Inefficient candles are visually marked with a darker / black body to indicate when the price movement is disproportionate to the volume.

1. Spotting Potential Reversals
When the indicator marks an inefficient candle, it signals that the price movement may be unsustainable.

In an uptrend: A inefficient bullish candle suggests that the uptrend is losing momentum, potentially leading to a downward reversal.

In a downtrend: A inefficient bearish candle signals that the downtrend may be weakening, with a potential bullish reversal.

snapshot

2. Identifying Breakout and Breakdown Failures
This indicator is useful for recognizing false breakouts or false breakdowns.

If price breaks resistance but the candle is inefficient, the breakout may be weak and could fail quickly.

If price breaks support with an inefficient bearish candle, the breakdown could be a false signal, with price reverting back above support.

snapshot

3. Recognizing Weak Trends
Inefficient candles help you spot when a trend is losing strength and could soon reverse or consolidate.

In an uptrend: A series of dark body bullish candles suggests that the uptrend may be weakening, signaling a potential correction or trend reversal.

In a downtrend: A series of dark body bearish candles suggests that the selling pressure is weakening, indicating a potential bullish reversal.

snapshot

4. Fine-Tuning Entries and Exits
Inefficient candles offer an opportunity to fine-tune your entries and exits based on weak price moves.

Entering a trade: An inefficient candle near key support or resistance can indicate a reversal, making it a good entry point for a counter-trend position.

Exiting a trade: If you're already in a trend, and an inefficient candle appears, it suggests the trend is losing strength, indicating it may be a good time to exit before a potential reversal.

snapshot

5. Fine-Tuning with Inputs
The Vacuum Candles indicator includes two key inputs:

Length: The number of candles used to calculate the average price movement and volume. A longer length (e.g., 20-30) smooths out the inefficiencies, while a shorter length (e.g., 10-15) makes the indicator more sensitive to recent price moves.

Multiplier: Controls the threshold for what is considered an inefficient candle:

A higher Multiplier (e.g., 1.5–3) filters out smaller inefficiencies and focuses on large discrepancies.

A lower Multiplier (e.g., 0.1–0.9) captures even smaller inefficiencies in highly efficient markets.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.