// Downloaded From https://www.WiseStockTrader.com
/*
   Bill William's Trading Chaos: Second Edition, Alligator.
   Written by EStromholt   September 26, 2010
*/

//This is an accurate Alligator indicator based on the Mid price and smoothed as Bill Williams specifies.
//This Alligator is also projected into the future as Williams prefers.



_SECTION_BEGIN("bwGator");

MedianPrice = (H+L)/2;

Jaw     = Wilders(MedianPrice,13);
Teeth   = Wilders(MedianPrice, 8);
Lips    = Wilders(MedianPrice, 5);

Plot(Jaw,  "Jaw", colorBlue, styleThick, Null, Null, 8);
Plot(Teeth,"Teeth", colorRed, styleThick, Null, Null, 5);
Plot(Lips, "Lips", colorGreen, styleThick, Null, Null, 3);