OPEN-SOURCE SCRIPT
Wick to Close Distance (Pips)

This indicator measures the distance between the candle wicks and the closing price.
For every candle:
* Upper value = distance from High to Close
* Lower value = distance from Low to Close
Unlike traditional wick calculations, this tool always uses the **closing price as the anchor point**, ignoring the open price and candle direction.
Key Features:
* Works on Forex pairs, Gold (XAUUSD), and other instruments
* Automatically adjusts using tick size for accurate pip/point calculation
* Displays values directly on the chart for quick analysis
* Clean visualization with color-coded labels:
* Red = Upper distance (High → Close)
* Green = Lower distance (Low → Close)
Use Case:
This helps identify rejection strength and price behavior around the closing price, which can be useful for spotting liquidity grabs, reversals, and momentum shifts.
Settings:
* Option to filter minimum distance
* Option to limit number of labels for better chart clarity
Best used for:
Scalping, intraday trading, and price action strategies.
For every candle:
* Upper value = distance from High to Close
* Lower value = distance from Low to Close
Unlike traditional wick calculations, this tool always uses the **closing price as the anchor point**, ignoring the open price and candle direction.
Key Features:
* Works on Forex pairs, Gold (XAUUSD), and other instruments
* Automatically adjusts using tick size for accurate pip/point calculation
* Displays values directly on the chart for quick analysis
* Clean visualization with color-coded labels:
* Red = Upper distance (High → Close)
* Green = Lower distance (Low → Close)
Use Case:
This helps identify rejection strength and price behavior around the closing price, which can be useful for spotting liquidity grabs, reversals, and momentum shifts.
Settings:
* Option to filter minimum distance
* Option to limit number of labels for better chart clarity
Best used for:
Scalping, intraday trading, and price action strategies.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.