OPEN-SOURCE SCRIPT

ATR with MA

OVERVIEW

The Average True Range Moving Average (ATRMA) is a technical indicator that gauges the amount of volatility currently present in the market, relative to the historical average volatility that was present before. It adds a moving average to the Average True Range (ATR) indicator.

This indicator is extremely similar to the VOXI indicator, but instead of measuring volume, it measures volatility. Volume measures the amount of shares/lots/units/contracts exchanged per unit of time. Volatility, on the other hand, measures the range of price movement per unit of time.

The purpose of this indicator is to help traders filter between non-volatile periods in the market from volatile periods in the market without introducing subjectivity. It can also help long-term investors to determine market regime using volatility without introducing subjectivity.


CONCEPTS

This indicator assumes that trends are more likely to start during periods of high volatility, and consolidation is more likely to persist during periods of low volatility. The indicator also assumes that the average true range (ATR) of the last 14 candles is reflective of the current volatility in the market. ATR is the average height of all the candles, where height = |high - low|.

Suppose the ATR of the last 14 candles is greater than a moving average of the ATR(14) of the last 20 candles (this occurs whenever the indicator's filled region is colored BLUE). In that case, we can assume that the current volatility in the market is high.

Suppose the ATR of the last 14 candles is less than the moving average of the ATR(14) of the last 20 candles (this occurs whenever the indicator's filled region is colored RED). In that case, we can assume that the current volatility in the market is low.


HOW DO I READ THIS INDICATOR?

If the ATR line is above the ATR MA line (indicated by the blue color), the current volatility is greater than the historical average volatility.

If the ATR line is above the ATR MA line (indicated by the red color), the current volatility is less than the historical average volatility.
Average True Range (ATR)filterHistorical VolatilitynnfxtrendtrendfollowingVolatilityvolatilityindex

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm