OPEN-SOURCE SCRIPT
Swing Liquidity Zones

Swing Liquidity Zones is a chart overlay for marking confirmed swing highs and swing lows, then building wick-based liquidity zones from those swing candles.
The indicator focuses on price action structure. It highlights the upper wick of confirmed swing highs as buy-side liquidity areas and the lower wick of confirmed swing lows as sell-side liquidity areas. These zones help keep important historical wick areas visible on the chart without manually drawing them.
What it shows
How the zones are built
When a swing high is confirmed, the script uses the area between the pivot candle body top and the candle high to create an upper liquidity zone. When a swing low is confirmed, the script uses the area between the pivot candle body bottom and the candle low to create a lower liquidity zone.
The result is a visual map of swing wick areas that traders can review later when price returns to previous highs, previous lows, rejection areas, or important structure points.
Swing confirmation
The script uses pivot logic. A swing is confirmed only after the required number of candles has closed on the right side of the pivot.
Because of this, zones appear after confirmation and are plotted back on the pivot candle for visual clarity. This is normal behavior for pivot-based tools and helps avoid marking swings before they are confirmed.
Clean swing filter
The optional clean swing filter helps reduce noise by keeping a more structured sequence of swings.
If several swing highs appear before a swing low is confirmed, the script keeps the highest swing high. If several swing lows appear before a swing high is confirmed, the script keeps the lowest swing low.
The filter can also use minimum bar spacing and ATR-based distance, so very small structure changes are less likely to clutter the chart.
Zone tracking
After a zone is created, it extends to the right as new candles form. When price trades back into a zone, the script adjusts the zone to show which part has already been traded through and which part remains unfilled.
Filled areas can be hidden for a cleaner view or displayed separately, depending on the user settings.
Estimated wick value
The script can show an estimated wick value for each zone.
This estimate is calculated from candle volume, wick size relative to the candle range, and the approximate midpoint price of the wick. It is intended only as a relative comparison between zones.
A larger wick with higher candle volume may display a larger value than a smaller wick with lower volume. The value should not be treated as an exact measurement of real market liquidity or available orders.
How to use it
Swing Liquidity Zones is best used as a visual structure and planning tool.
Traders may compare the zones with higher timeframe direction, support and resistance, session highs and lows, VWAP, volume behavior, candle closes, market structure shifts, fair value gaps, order blocks, trend context, and invalidation levels.
A zone by itself is not a trade signal. It is an area of interest that should be reviewed together with a complete trading plan and independent confirmation.
Limitations and Disclaimer
Swing Liquidity Zones is intended for educational and analytical use only.
The indicator does not provide financial advice, investment advice, trade recommendations, entry signals, exit signals, stop loss levels, take profit levels, or guaranteed outcomes.
The zones are created from confirmed pivot candle wick areas and standard OHLCV chart data. They do not represent live exchange liquidity, order book depth, resting orders, liquidation levels, or the exact location of market participant orders.
Swing points are confirmed with delay because the script uses pivot logic. Estimated wick values depend on the quality of the symbol’s volume data and should only be used as a relative visual reference.
Trading and investing involve risk. Every trader is responsible for their own analysis, risk management, execution, and financial decisions.
The indicator focuses on price action structure. It highlights the upper wick of confirmed swing highs as buy-side liquidity areas and the lower wick of confirmed swing lows as sell-side liquidity areas. These zones help keep important historical wick areas visible on the chart without manually drawing them.
What it shows
- Confirmed swing highs and swing lows;
- Buy-side liquidity zones above swing high candle bodies;
- Sell-side liquidity zones below swing low candle bodies;
- Zones extended forward on the chart;
- Filled and unfilled parts of each zone;
- Optional estimated wick value based on OHLCV data;
- Optional clean swing filter for a less crowded structure view.
How the zones are built
When a swing high is confirmed, the script uses the area between the pivot candle body top and the candle high to create an upper liquidity zone. When a swing low is confirmed, the script uses the area between the pivot candle body bottom and the candle low to create a lower liquidity zone.
The result is a visual map of swing wick areas that traders can review later when price returns to previous highs, previous lows, rejection areas, or important structure points.
Swing confirmation
The script uses pivot logic. A swing is confirmed only after the required number of candles has closed on the right side of the pivot.
Because of this, zones appear after confirmation and are plotted back on the pivot candle for visual clarity. This is normal behavior for pivot-based tools and helps avoid marking swings before they are confirmed.
Clean swing filter
The optional clean swing filter helps reduce noise by keeping a more structured sequence of swings.
If several swing highs appear before a swing low is confirmed, the script keeps the highest swing high. If several swing lows appear before a swing high is confirmed, the script keeps the lowest swing low.
The filter can also use minimum bar spacing and ATR-based distance, so very small structure changes are less likely to clutter the chart.
Zone tracking
After a zone is created, it extends to the right as new candles form. When price trades back into a zone, the script adjusts the zone to show which part has already been traded through and which part remains unfilled.
Filled areas can be hidden for a cleaner view or displayed separately, depending on the user settings.
Estimated wick value
The script can show an estimated wick value for each zone.
This estimate is calculated from candle volume, wick size relative to the candle range, and the approximate midpoint price of the wick. It is intended only as a relative comparison between zones.
A larger wick with higher candle volume may display a larger value than a smaller wick with lower volume. The value should not be treated as an exact measurement of real market liquidity or available orders.
How to use it
Swing Liquidity Zones is best used as a visual structure and planning tool.
Traders may compare the zones with higher timeframe direction, support and resistance, session highs and lows, VWAP, volume behavior, candle closes, market structure shifts, fair value gaps, order blocks, trend context, and invalidation levels.
A zone by itself is not a trade signal. It is an area of interest that should be reviewed together with a complete trading plan and independent confirmation.
Limitations and Disclaimer
Swing Liquidity Zones is intended for educational and analytical use only.
The indicator does not provide financial advice, investment advice, trade recommendations, entry signals, exit signals, stop loss levels, take profit levels, or guaranteed outcomes.
The zones are created from confirmed pivot candle wick areas and standard OHLCV chart data. They do not represent live exchange liquidity, order book depth, resting orders, liquidation levels, or the exact location of market participant orders.
Swing points are confirmed with delay because the script uses pivot logic. Estimated wick values depend on the quality of the symbol’s volume data and should only be used as a relative visual reference.
Trading and investing involve risk. Every trader is responsible for their own analysis, risk management, execution, and financial decisions.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
CT Community from Lithuania: cryptoimperija.com
All content provided by Crypto Imperija is for informational and educational purposes only. Past performance does not guarantee future results.
All content provided by Crypto Imperija is for informational and educational purposes only. Past performance does not guarantee future results.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
CT Community from Lithuania: cryptoimperija.com
All content provided by Crypto Imperija is for informational and educational purposes only. Past performance does not guarantee future results.
All content provided by Crypto Imperija is for informational and educational purposes only. Past performance does not guarantee future results.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.