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.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
//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)