OPEN-SOURCE SCRIPT

ATR Spike Kienthogo

169
ATR Spike Kienthogo
This indicator, titled "ATR Spike Kienthogo", is designed to visualize volatility spikes in the market by comparing the current Average True Range (ATR) against a dynamic threshold. The threshold is calculated as an EMA-smoothed ATR multiplied by a user-defined factor. When the current ATR exceeds this threshold, the indicator highlights it as a spike event, further classified by price direction (up or down).

The script features:

Configurable ATR smoothing methods: RMA, SMA, EMA, WMA.

Customizable spike detection threshold via spike_multiple.

Conditional color plotting of ATR:

Spike + Price Up → Green

Spike + Price Down → Red

Non-spike → User-defined neutral color, adaptive to candle direction (greenish for bullish candles, reddish for bearish candles).

This script is especially useful for:

Detecting volatility expansions.

Enhancing entry/exit timing during strong directional moves.

Confirming breakout strength or trap signals in low-volatility regimes.

The logic maintains clean separation between spike vs. non-spike conditions and offers full control over color coding for better visual integration in multi-indicator environments.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.