OPEN-SOURCE SCRIPT
2-Click Pip Calculator

Title Idea: 2-Click Interactive Pip Ruler (Clean & Fast)
Description:
This script acts as a fast, interactive vertical caliper. It strips out the time-axis requirements completely, dropping the tool down to just two clicks (Y-Axis only).
How to Use It:
Add the indicator to your chart.
The prompt will ask you to select two points.
Click 1: Click anywhere on the horizontal plane of your start price (e.g., a swing high).
Click 2: Click anywhere on the horizontal plane of your target price (e.g., a swing low).
The script instantly drops a clean, vertical measurement line at the hard right edge of your chart, displaying the exact pip distance between those two levels.
Key Features:
Zero Chart Clutter: No diagonal anchor lines or historical time markers dragging across your screen.
Forex Auto-Scaling: Automatically detects if you are on a Forex pair and multiplies the tick size by 10 to give you standard Pips. If you are on an index or crypto, it defaults to standard ticks/points.
Instant HUD: The pip label is locked cleanly to the right side of the measurement line with a semi-transparent background so it never gets lost in your candles.
Description:
This script acts as a fast, interactive vertical caliper. It strips out the time-axis requirements completely, dropping the tool down to just two clicks (Y-Axis only).
How to Use It:
Add the indicator to your chart.
The prompt will ask you to select two points.
Click 1: Click anywhere on the horizontal plane of your start price (e.g., a swing high).
Click 2: Click anywhere on the horizontal plane of your target price (e.g., a swing low).
The script instantly drops a clean, vertical measurement line at the hard right edge of your chart, displaying the exact pip distance between those two levels.
Key Features:
Zero Chart Clutter: No diagonal anchor lines or historical time markers dragging across your screen.
Forex Auto-Scaling: Automatically detects if you are on a Forex pair and multiplies the tick size by 10 to give you standard Pips. If you are on an index or crypto, it defaults to standard ticks/points.
Instant HUD: The pip label is locked cleanly to the right side of the measurement line with a semi-transparent background so it never gets lost in your candles.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.