Daniel_Ge

Average Trend with Deviation Bands

TL,DR: A trend indicator with deviation bands using a modified Donchian calculation

This indicator plots a trend using the average of the lowest and highest closing price and the lowest low and highest high of a given period. This is similar to Donchian channels which use an average of the lowest and highest value (of a given period). This might sound like a small change but imho it provides a better "average" when lows/highs and lowest/highest closing prices are considered in the average calculation as well.

I also added the option to show 2 deviation bands (one is deactivated by default but can be activated in the options menu). The deviation band uses the standard deviation (of the average trend) and can be used to determine if a price movement is still in a "normal" range or not. Based on my testing it is fine to use one band with a standard deviation of 1 but it is also possible to show a second band with a different deviation value if needed. The bands (and trendline) can also be used as dynamic support/resistance zones.

Trendline without deviation bands
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 đồ?