GoldBands

CBG Keltner Channels

GoldBands Zaktualizowano   
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.
Informacje o Wersji:
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.
Informacje o Wersji:
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.
Informacje o Wersji:
// *** 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.

Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?