Note: First script submission. Didn't mean to use this chart. Also this is a duplicate post -- oops.
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.
study("True Williams Alligator (Timeframe Multiplier)", overlay=true) smma(src, length) => smma = na(smma) ? sma(src, length) : (smma * (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)