True Williams Alligator (Timeframe Multiplier)

Modified version of my original "True Williams Alligator (SMMA)" indicator that includes a multiplier to show the alligator (ie elliot wave mode) of higher timeframes. See original indicator for details.

Note: First script submission. Didn't mean to use this chart. Ugly and messy. Oops.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study("True Williams Alligator (Timeframe Multiplier)", overlay=true)
smma(src, length) =>
    smma = na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length

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)