the_batman

True Williams Alligator (SMMA)

The built-in implementation of the alligator is incorrect. It uses SMA with altered input parameters to approximate the true alligator indicator.

The alligator was created with a supercomputer to model the elliott wave - it's very apart from other MA techniques. The built-in approximation (and similar techniques) and the true alligator yield very different conclusions. Hence the need for this, a true and exact implementation of "The Mighty Alligator" (Bill Williams, Trading Chaos 1, New Trading Dimensions, Trading Chaos 2).

Note: First script submission. Didn't mean to use this chart. Ugly and messy. Oops.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
study("True Williams Alligator (SMMA)", overlay=true)
smma(src, length) =>
    smma = na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length
    smma
jawLength = input(13, "Jaw Length")
teethLength = input(8, "Teeth Length")
lipsLength = input(5, "Lips Length")
jawOffset = input(8, "Jaw Offset")
teethOffset = input(5, "Teeth Offset")
lipsOffset = input(3, "Lips Offset")
jaw = smma(hl2, jawLength)
teeth = smma(hl2, teethLength)
lips = smma(hl2, lipsLength)
plot(jaw, "Jaw", blue, offset=jawOffset)
plot(teeth, "Teeth", red, offset=teethOffset)
plot(lips, "Lips", green, offset=lipsOffset)