OPEN-SOURCE SCRIPT

ATR Pulse

429
ATR Pulse is an ATR-based trend and signal indicator designed to identify transitions around a dynamic volatility-adjusted trailing stop.

The script combines one core ATR transition engine with optional validation filters. These filters are not separate trading systems merged together; they act as configurable confirmation layers around the same underlying price-versus-trailing-stop event. This allows users to keep the indicator simple or make signal requirements more selective without changing the core concept.

**How it works**

The indicator calculates Average True Range over the selected ATR Period and multiplies it by the ATR Sensitivity setting.

This produces a dynamic loss distance:

ATR distance = ATR x Sensitivity

The trailing stop then adjusts according to the relationship between the current price, the previous price, and the previous trailing-stop value.

When price remains above the trailing stop, the stop follows upward without moving lower.

When price remains below the trailing stop, the stop follows downward without moving higher.

A directional transition is detected when price crosses the ATR trailing stop:

* A bullish signal requires price to cross above the trailing stop.
* A bearish signal requires price to cross below the trailing stop.

The indicator uses standard chart prices and does not request data from another symbol or timeframe.

**ATR Sensitivity**

ATR Sensitivity controls how closely the trailing stop follows price.

Lower values create a tighter stop that reacts to smaller price movements.

Higher values create a wider stop that requires a larger price movement before a directional transition occurs.

ATR Period controls the lookback used to calculate market volatility.

**Optional EMA trend filter**

When enabled:

* Bullish signals require price to be above the selected EMA.
* Bearish signals require price to be below the selected EMA.

The purpose of this filter is to restrict ATR transitions to the selected broader price direction.

**Optional ADX / DMI filter**

When enabled, the indicator requires both directional strength and directional agreement.

For bullish signals:

* ADX must be at or above the selected minimum.
* +DI must be greater than -DI.

For bearish signals:

* ADX must be at or above the selected minimum.
* -DI must be greater than +DI.

DI Length, ADX Smoothing, and Minimum ADX are independently adjustable.

**Optional RSI filter**

The RSI filter provides an additional directional condition.

When enabled:

* Bullish signals require RSI above the selected RSI Direction Level.
* Bearish signals require RSI below that level.

The default center level is 50, but both the RSI length and directional level can be changed.

**Optional volume filter**

When enabled, current volume must be at least the selected multiple of its moving average.

For example, a setting of 1.5 requires current volume to be at least 1.5 times the selected average-volume reference.

If usable volume data is not available for the symbol, the volume condition is bypassed rather than preventing all signals. Volume therefore should be interpreted according to the quality of volume data provided for the selected market.

**Optional candle-quality filter**

This filter evaluates the signal candle itself.

When enabled:

* A bullish signal requires a bullish candle.
* A bearish signal requires a bearish candle.
* The candle body must represent at least the selected percentage of the candle's full high-to-low range.

This can be used to exclude transition candles with relatively small bodies and large wicks.

**Signal cooldown**

The Minimum bars between signals setting can be used to reduce closely spaced signals.

A value of 0 disables the cooldown.

Higher values require the specified number of bars to pass before another signal can be accepted.

**Candle-close confirmation**

Confirm signals on candle close is enabled by default.

When enabled, Buy and Sell signals are accepted only after the current candle is confirmed closed.

When disabled, signal conditions can become true while the realtime candle is still developing. In that mode, a signal may appear or disappear before the candle closes as price changes.

**Visual controls**

The indicator can display:

* Buy and Sell labels.
* The ATR trailing stop.
* The trend EMA.
* A bullish or bearish background.
* An information dashboard.

Most supplementary visuals are optional so users can keep the chart clean and display only the elements relevant to their analysis.

The dashboard can show the current trend state together with ATR, ADX, RSI, sensitivity, and current filter readiness.

**Alerts**

Two alert conditions are included:

* ATR Pulse Buy
* ATR Pulse Sell

These alerts use the same final signal conditions as the chart labels, including any optional filters that the user has enabled.

Users should configure the indicator settings before creating an alert so the alert reflects the intended configuration.

**Pine Screener support**

ATR Pulse can also be used with TradingView's Pine Screener.

The script includes dedicated Buy and Sell alert conditions that can be used as screening filters, allowing users to scan a watchlist for symbols currently meeting the ATR Pulse bullish or bearish conditions.

This can be particularly useful when the same ATR Pulse settings need to be evaluated across multiple symbols instead of checking charts individually.

Pine Screener has its own platform limitations and calculation scope, so screening results should be interpreted within the data and timeframe processed by the Screener.

**Example workflow**

A user who wants the basic ATR transition behavior can leave all optional filters disabled.

A more selective configuration can enable one or more of the following:

* EMA trend alignment.
* ADX / DI directional strength.
* RSI direction.
* Volume expansion.
* Candle quality.
* Signal cooldown.

Each enabled filter becomes an additional requirement for the same underlying ATR transition signal.

There is no single recommended combination for every symbol or timeframe. Settings should be selected according to the market, timeframe, and type of analysis being performed.

**Repainting and realtime behavior**

ATR Pulse does not use future data or lookahead calculations.

With Confirm signals on candle close enabled, signal confirmation occurs only on closed candles.

The ATR trailing stop itself continues to update as new market data arrives.

If candle-close confirmation is disabled, conditions on the realtime candle can change before that candle closes. This is normal realtime behavior and should not be interpreted as a confirmed historical signal until the bar is complete.

Changing indicator settings, symbol, timeframe, or available chart history causes TradingView to recalculate the indicator.

**Limitations**

ATR Pulse is sensitive to volatility and parameter selection.

A tight ATR Sensitivity may produce more frequent transitions in sideways markets, while a wider setting can respond more slowly to directional changes.

Optional filters can reduce the number of signals, but they can also delay or exclude transitions that would otherwise qualify under the core ATR logic.

ADX, RSI, EMA, volume, and candle-quality conditions describe different aspects of current market behavior. Their inclusion does not guarantee that a subsequent price move will continue in the signal direction.

Signals are descriptive outputs of the selected rules, not forecasts of future price movement.

ATR Pulse is an indicator, not a strategy. It does not place orders, provide performance statistics, or claim a particular win rate. It is intended as a configurable technical-analysis and screening tool to help users identify and evaluate ATR-based directional transitions.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน