GoldBands

CBG Keltner Channels

GoldBands 已更新   
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.
發布通知:
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.
發布通知:
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.
發布通知:
// *** 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.

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?