pascorp

Average True Range Normalized

Introduction
This simple script is the normalization of the common ATR indicator. The utility in normalization, in this case, is the contextualization of the absolute movements of the ATR compared to the previous candles. Not finding an indicator that reflected my needs, I created it and decided to make it available to the community.

The oscillator is fully based on the original ATR indicator, once normalized it varies its values between -50 and +50 and has a moving average based on it.

I added alarms:
- crossing of horizontal levels (default +40 -40)
- crossing of the moving average

Settings
ATR period: like a normal ATR indicator, the number of candles on which the ATR calculation is based
Smooth: like normal ATR indicator, type of moving average to smooth true range values

Normalization Period: Number of candles on which ATR normalization is based, it takes the maximum and the minimum values in the last N candles and creates the value -50 and +50, between these two values normalize the others.

MA Period: Period of MA based on ATR, this MA can be used like moving level to find the moment of low volatility
Type: Kind of MA, you can choose only between 3 types ( SMA, EMA, WMA )

Horizontal Lines Value: high and low level for high and low volatility
Alert on crossing Horizontal lines: enable alerts on crossing Horizontal Lines
Alert on crossing MA: enable alerts on crossing Moving Average

How to use
ATR isn't a directional indicator, but volatility is fuel for markets, low ATR values indicate quiet moments or consolidation movements, otherwise high ATR values indicate selling or buying pressure. A reversal in price with an increase in ATR would indicate strength behind that move.
The problem, for me, with normal ATR is that often the values have to be contextualized with older values, on the contrary being normalized you can:
- catch small fluctuations, and anticipate the decline;
- contextualize the values without having to look at the history in the previous candles

So:
- under MA or horizontal line the volatility is too low, it would be advisable to consider not opening positions;
- over MA line the volatility is raising and a reversal in price with an increase in ATR would indicate strength behind that move;

Remember that every statistical indicator is just a tool, it needs to be understood to be used at its best, otherwise, it is just a colored line in a colored graph.
Mã nguồn mở

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

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

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

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