OPEN-SOURCE SCRIPT
ATR-Based Spike Radar [SuprAlgo]

📌 ATR-Based Spike Radar
ATR-Based Spike Radar is built to spot sudden volatility spikes by measuring the bar-to-bar jump in the Average True Range (ATR).
A spike is highlighted when the ATR increase between two bars exceeds your ATR Spike Threshold. Optional ATR baseline coloring helps you see whether the market is in a calm or high-volatility regime.
🔶 How it works
Measures volatility using the ATR jump between two bars.
When the ATR jump ≥ your ATR Spike Threshold, a “Spike!” marker is displayed.
Line and background colors show regime: green when ATR is above its ATR moving-average baseline, red when below.
Enable High Volatile Zones Only to show spikes only while ATR is above its baseline.
⚙️ Settings
🔔 Built-in Alert
Activate in Create Alert → Condition: this indicator:
Alerts respect your settings, including the High Volatile Zones filter if enabled.
ATR-Based Spike Radar is built to spot sudden volatility spikes by measuring the bar-to-bar jump in the Average True Range (ATR).
A spike is highlighted when the ATR increase between two bars exceeds your ATR Spike Threshold. Optional ATR baseline coloring helps you see whether the market is in a calm or high-volatility regime.
🔶 How it works
Measures volatility using the ATR jump between two bars.
When the ATR jump ≥ your ATR Spike Threshold, a “Spike!” marker is displayed.
Line and background colors show regime: green when ATR is above its ATR moving-average baseline, red when below.
Enable High Volatile Zones Only to show spikes only while ATR is above its baseline.
⚙️ Settings
- ATR type & length → Control how reactive the ATR is.
- ATR Spike Threshold → Minimum bar-to-bar ATR jump required for a spike (higher = fewer, bigger spikes).
- ATR moving average → Baseline used for regime coloring/filters (not for spike detection).
- High Volatile Zones → Show spikes only during high-volatility phases.
- Colors & background → Customize visuals to fit your chart.
🔔 Built-in Alert
Activate in Create Alert → Condition: this indicator:
- 🔔 ATR-Based Spike Radar → “⚠️ ATR Spike detected on {{ticker}}”
Alerts respect your settings, including the High Volatile Zones filter if enabled.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.