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.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?
//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)