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.
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?
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)