Skip to content
All library documents

Using the Bill Williams Alligator to Read Trends and Test Signal Patterns

Article MQL5 articles

Summary

The article explains the Alligator indicator as three smoothed moving averages, called the Jaws, Teeth, and Lips, whose spacing and order are used to interpret market phases. Lines close together suggest consolidation; separation can mark a developing trend; and convergence may indicate a trend is weakening. It describes crossover and alignment signals and presents an MQL5 Wizard approach for selecting individual patterns or combining them through a bitmap input.

The author reports optimization tests on USD/CHF hourly data for 2023, including tests of individual patterns and a combined set. The combined results are described as underwhelming compared with a more selective approach, but the article cautions that this short test window cannot support firm conclusions. The attached expert advisor examples also use particular order and exit settings, including tests without a stop loss, so the reported results are demonstrations rather than evidence of a robust live strategy. Longer testing outside the sample period is needed.

Key ideas

  • The Alligator uses three smoothed moving averages with different periods and forward shifts to represent market phases.
  • Close lines may indicate consolidation, while divergence and line ordering can signal a directional trend.
  • The article examines crossover and trend alignment patterns in an MQL5 expert advisor.
  • Its 2023 USD/CHF tests are preliminary and do not establish that the signals will generalize.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.