cheatcountry

Ehlers Adaptive Commodity Channel Index V1 [CC]

The Adaptive Commodity Channel Index V1 was created by John Ehlers (Rocket Science For Traders pgs 236-237) and this is the typical Commodity Channel formula with the introduction of adaptive lengths based on his earlier work with indicators such as the Mother of Adaptive Moving Averages. For longer term signals you would get a bullish signal when CCI is above 0 and a bearish signal when CCI falls below 0. For shorter term signals you would get a bullish signal when crosses over it's overbought level or when it crosses above it's oversold level or vice versa. I have included both signals to make it easier.

Let me know if you want a custom script written or if you have a special request for me
Informacje o Wersji: trying to fix an issue with the label location
Informacje o Wersji: fixed a typo
Informacje o Wersji: had to fix the issue again because the save didn't go through
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 dodać do ulubionych, żeby używać go na wykresie.

Chcesz użyć tego skryptu na wykresie?

Komentarze

Hi @cheatcountry , is it a bug, the scale it shown 0 to (near stock price range) on my pane, instead of -200 to 200 ?
+1 Odpowiedz
@MasBart, can you send me a pm with a screenshot so I can see what you are talking about?
+1 Odpowiedz
MasBart cheatcountry
@cheatcountry, pm sent
+1 Odpowiedz
wroclai cheatcountry
@cheatcountry, You have the buy/sell plotshapes plotting above/below bar. It looks fine within the $200 price range in your screenshot. If used on a instrument with a higher price like BTC, the oscillator looks squished because it is centered on 0 but the plotshapes are plotting around the 12000 price range.
+1 Odpowiedz
@wroclai, thanks for the info. I made a change that will fix that
+1 Odpowiedz
MasBart cheatcountry
@cheatcountry, it's fixed now. Thanks
+1 Odpowiedz
I just went through the script, some comments as below:

1. "period := im != 0 and re != 0 ? 360 / atan(im / re) : 0" , I understand "360 " here should be changed into "2*pi".

2. "period := im != 0 and re != 0 ? 360 / atan(im / re) : 0
period := min(max(period, 0.67 * nz(period)), 1.5 * nz(period))
period := min(max(period, 6), 50)
period := (0.2 * period) + (0.8 * nz(period))" , the order of 'period' assignment, i remember "min 1.5 * nz(period)" should be first handled. However, i am not sure whether it will contribute to different results or not.

3. "length = ceil(cycPart * smoothPeriod)", 'ceil' function here should be 'round', but when i changed it, pine reported an error of nagtive value. I have no idea why this happen.

could you look into them and check whether they are valid or not? thanks in advance!
Odpowiedz
thanks for sharing this, really appreciate :D
Odpowiedz
Strona główna Skaner akcji Skaner Forex Skaner Krypto Kalendarz ekonomiczny O nas Funkcje wykresów Cennik Poleć przyjaciela Dobre Praktyki Centrum Pomocy Rozwiązania internetowe i brokerskie Widżety Wykresy Lekka Biblioteka Wykresów Blog i wiadomości Twitter