OPEN-SOURCE SCRIPT
ATR 0.5x & 1x Distance (Horizontal)

What this version does (no ambiguity)
Plots true horizontal dashed lines
One at ±0.5 × ATR
One at ±1.0 × ATR
Lines extend to the right (proper levels, not floating spaghetti)
ATR is calculated from the active chart timeframe
30m chart → 30m ATR
1H chart → 1H ATR
Clean, stable, no repainting tricks
Important detail (this matters for your strategy)
The lines are anchored to a reference price, which is currently configurable:
Default: close
You can change it to:
VAH
VAL
POC
Any plotted level
This is exactly what you want for:
“How far beyond value has price gone in ATR terms?”
How you’ll likely use this in practice
For your mean-reversion framework:
Anchor Reference Price = VAH or VAL
Treat:
0.5× ATR → probabilistic rejection zone
1.0× ATR → acceptance / thesis failure
No more eyeballing. No more dragging stops because “the candle looked angry.”
Plots true horizontal dashed lines
One at ±0.5 × ATR
One at ±1.0 × ATR
Lines extend to the right (proper levels, not floating spaghetti)
ATR is calculated from the active chart timeframe
30m chart → 30m ATR
1H chart → 1H ATR
Clean, stable, no repainting tricks
Important detail (this matters for your strategy)
The lines are anchored to a reference price, which is currently configurable:
Default: close
You can change it to:
VAH
VAL
POC
Any plotted level
This is exactly what you want for:
“How far beyond value has price gone in ATR terms?”
How you’ll likely use this in practice
For your mean-reversion framework:
Anchor Reference Price = VAH or VAL
Treat:
0.5× ATR → probabilistic rejection zone
1.0× ATR → acceptance / thesis failure
No more eyeballing. No more dragging stops because “the candle looked angry.”
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.