Skip to content
All library documents

Alligator Indicator Trend Alignment for Single-Position Entries

Article MQL5 code base

Summary

This document outlines a simple expert advisor based on the Alligator indicator. It uses the relative ordering of the indicator’s Lips, Teeth, and Jaws lines to determine trade direction: a bullish alignment triggers a buy condition, while the reverse ordering triggers a sell condition. The advisor is designed to maintain only one market position at a time, so it can operate on either hedging or netting accounts.

Entry checks can run on every tick or, by default, only when a new bar appears. The description does not provide exit conditions, stop placement, position sizing, market or timeframe selection, or backtest results. Consequently, it conveys a basic trend alignment entry rule rather than a fully specified trading system. No evidence is supplied to show whether the rule performs consistently or how sensitive it is to the chosen evaluation timing.

Key ideas

  • The expert advisor bases entries on the ordering of the Alligator indicator’s three lines.
  • A bullish line order triggers a buy condition, and the inverse order triggers a sell condition.
  • The advisor keeps at most one market position open at a time.
  • Entry checks can run on every tick or only when a new bar appears.
  • The description does not specify exits, risk controls, or performance evidence.

Tags

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