ChaosTrader

Gator Oscillator

This is Bill Williams' Gator Oscillator
It's purpose is to easily show the varying distance between the lines of the Alligator indicator.
The lower part of the oscillator is the distance between the red and green lines.
The upper part of the oscillator is the distance between the red and blue lines.
A value greater than the last results in a green bar; less than the last results in a red bar.
In a bear or a bull trend, green indicates that it is still getting stronger, red that it is weakening either temporarily or permanently.
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?
//This is Bill Williams' Gator Oscillator
//It's purpose is to easily show the varying distance between the lines of the Alligator indicator.
//The lower part of the oscillator is the distance between the red and green lines.
//The upper part of the oscillator is the distance between the red and blue lines.
//A value greater than the last results in a green bar; less than the last results in a red bar.
//In a bear or a bull trend, green indicates that it is still getting stronger, red that it is weakening either temporarily or permanently.
study(title="Gator Oscillator", shorttitle="GO")
BlueLine = ema(hl2,25)
RedLine = ema(hl2,15)
GreenLine = ema(hl2,9)
GOabove = abs(RedLine-BlueLine)
GObelow = -abs(RedLine-GreenLine)
plot(GOabove, color = change(GOabove) <= 0 ? red : green, style=histogram, offset=5)
plot(GObelow, color = change(GObelow) >= 0 ? red : green, style=histogram, offset=3)