GoldBands

CBG Keltner Channels

GoldBands Aktualisiert   
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.
Versionshinweise:
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.
Versionshinweise:
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.
Versionshinweise:
// *** 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.

Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?