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)