the_batman

True Williams Alligator (Timeframe Multiplier)

Modified version of the true alligator indicator (ie SMMA) that features a timeframe multiplier so that you can monitor the elliott wave of higher timeframes. (See original "True Williams Alligator" for more details.)

Note: First script submission. Didn't mean to use this chart. Also this is a duplicate post -- oops.
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
study("True Williams Alligator (Timeframe Multiplier)", overlay=true)
smma(src, length) =>
    smma = na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length
    smma

multiplier = input(10, "Multiplier")

jawLength = 13 * multiplier
teethLength = 8 * multiplier
lipsLength = 5 * multiplier
jawOffset = 8 * multiplier
teethOffset = 5 * multiplier
lipsOffset = 3 * multiplier

jaw = smma(hl2, jawLength)
teeth = smma(hl2, teethLength)
lips = smma(hl2, lipsLength)
plot(jaw, "Jaw", #9FC5E8, offset=jawOffset, linewidth=1, style=line)
plot(teeth, "Teeth", #E6B8AF, offset=teethOffset, linewidth=1, style=line)
plot(lips, "Lips", #B6D7A8, offset=lipsOffset, linewidth=1, style=line)