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.
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.

Want to use this script on a chart?
study("True Williams Alligator (SMMA)", overlay=true)
smma(src, length) =>
    smma = na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length
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)


how does this help with EW?
+5 Reply

1) Can this be used with Crypto Trading ?
2) Can the offset to changed to 0 as then it is more accurate on 1hr chart?
+1 Reply
iDS7 GarethSA
@GarethSA, Absolutely it can be used for any trading. Offset it how you like, howevre the purpose of the alligator is quite deep and you may want to look into it a bit.
thanks for putting this together man, amazing, loving that youre into ew, all my buddies think im insane...maybe a bt =0) thanks again
Overlayed this Indicator with the built In Alligator on my chart & they seem to come up identical.
Doppelkeks Andydray
@Andydray, Yes, must be a hoax.
thank you.
Is that super smoothed?
SparkyFlary SparkyFlary
Is it Wilders?

1) Can this be used with Crypto Trading ?
2) Can the offset to changed to 0 as then it is more accurate on 1hr chart?
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out