GoldBands

CBG Keltner Channels

GoldBands Cập nhật   
Here's an updated version of the CBG Keltner Channel indicator.

1. Added a new option for painting bars and backgrounds.
- Option 5 will paint up bars if the midline moving average is moving up and price is above the control moving average. It will paint down bars if the opposite is true. If neither are true, it will paint a neutral color. The neutral color defaults to gray bars and no color for backgrounds.

2. I've also added a 3rd band.

The chart here shows the default settings except for the inner band which is turned off.
Phát hành các Ghi chú:
I added a new painting method. Here's the description:

"6. Cross Back and Break Out"

Color changes when price breaks back above or below upper band2 or below lower band2.

It stays that color until the opposite band2 is breached and then price comes back. Color remains until the opposite band is breached and comes back. This colors the bars and background as price moves from one outer band to the opposite outer band.

Color also changes if price breaks under the outer band before hitting the opposite band.
Phát hành các Ghi chú:
11/29/2021
- Converted to Pinescript v5
- Removed painting option 6 due to compile errors. I will have to re-write that function in the future. Let me know if anyone is using it.
- Optimized code and re-factored the multi timeframe supprt.
Phát hành các Ghi chú:
// *** 2021/11/29 ***
Forgot to mention a couple of items so re-publishing.

- Converted to v5
- Removed painting option 6 due to compile errors. I will have to re-write that function in the future. Let me know if anyone is using it.
- Optimized code and re-factored the multi timeframe supprt.
- Most importantly, I've added 2 more bands! Default settings are 1, 2, 3, 5 & 7.
- I've also made the default MA type the Wilder MA. Check it out. It tracks really well.

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 đồ?