Alligator
Indicator Tutorial 12
The Alligator is a classic indicator based on the idea that markets spend most of their time in a horizontal motion and about 15-30% of the time trending. Different interactions of its three SMA plots are said to help identify a coming trend and predict its direction. Here’s the basic definition:
- The Jaws are a 13 period SMA shifted into the future by 8 bars.
- The Lips are an 8 period SMA shifted into the future by 5 bars.
- The Teeth are a 5 period SMA shifted into the future by 3 bars.
Using the Indicator’s shifts property, and the builtin SMA tool, we can easily accomplish the Alligator. shifts allow us to define bar-offsets on the X axis into the past or future on a plot-by-plot basis.


