VI

Robot Forex Alligator

EA trades Bill Williams' Alligator: enters when the alligator opens its mouth (default), when price breaks a Fractal or pulls back to the Teeth; stop loss beyond the Jaw, closes when price closes across the Jaw or the alligator closes its mouth.

Robot Forex MT4MT5 GD-8821v1.0 Lifetime 7-day trial 24/11/2026
Alligator 13, 8, 5 · H1–Lips2661.842Teeth2659.317Jaw2657.905AlligatorMouth open upFractal up · down2664.120 · 2655.480Alligator opens its mouthOnFractal breakoutOffTeeth pullbackOffOpen positionBUY 1 · SELL 0Waiting for an Alligator signal on H110:00 Opened BUY: alligator opened its mouth upward
The EA panel on a MetaTrader chart (sample figures, default settings). To see the 3 Alligator lines on the chart, also attach indicator CB-8921. The panel can be dragged; click the top-right button to collapse it.
Companion indicator, free
GD-8821 1.00 (XAUUSD,H1)
CommonInputs
VariableValue
ab========================================GENERAL SETTINGS
01Magic number (per product code)
01Max spread to open orders (points, 0 = no limit)
abTrading hours (server time), separate ranges with commas
Timeframe
ab========================================ORDER SETTINGS
½Volume (lot)
Stop loss
01Extra distance beyond the Jaw (points)
01Stop Loss in points (0 = none)
½ATR stop loss: ATR 14 multiplier
01Take Profit (points, 0 = none)
Close trades when price closes across the Jaw or the alligator closes its mouth
01Min distance between 2 same-direction orders (points, 0 = no limit)
Close opposite orders on a new signal
ab========================================ORDER LIMITS
01Max total BUY + SELL orders (0 = no limit)
01Max BUY orders (0 = no limit)
01Max SELL orders (0 = no limit)
At most 1 order per candle (of the timeframe)
ab========================================ALLIGATOR AND FRACTAL SETTINGS
01Jaw: SMMA period
01Jaw: shift forward (candles)
01Teeth: SMMA period
01Teeth: shift forward (candles)
01Lips: SMMA period
01Lips: shift forward (candles)
01Fractal breakout: search Fractals within the last N candles
ab========================================ENTRY SCENARIOS
Mouth opening: Lips > Teeth > Jaw just lined up BUY (reverse SELL)
Fractal breakout: close above the up Fractal (above the Teeth) BUY, below the down Fractal SELL
Teeth pullback: mouth open, price touches the Teeth and closes in the mouth direction
Trade direction
ab========================================BREAKEVEN AND TRAILING STOP
Move Stop Loss to breakeven
01When the order is in profit by (points)
01Stop Loss beyond entry price (points, to cover costs)
Trailing Stop: Stop Loss follows price
01Start when the order is in profit by (points)
01Keep Stop Loss away from price (points)
01Minimum step (points)
ab========================================OTHER SETTINGS
Phone notification when orders open / close
LoadSave

How the EA works

The EA computes the Alligator and Fractals on closed candles of the trading timeframe (default H1). Intertwined lines mean the alligator is sleeping and price is ranging; lines separating in order mean the alligator opens its mouth and a trend begins.

SELLBUYSELLBUYSELLSELLSELLBUYJaw 13Teeth 8Lips 5Entry point
The same H1 price segment, computed exactly as the EA does: Jaw SMMA 13 shifted 8 (blue), Teeth SMMA 8 shifted 5 (red), Lips SMMA 5 shifted 3 (green) of the median price. Pick a scenario to see where the EA opens trades; in the Fractal breakout scenario, the dashed gold line is the broken Fractal level. The large gold dot is the entry at the start of the candle after the signal candle.

Entry scenarios

  • 1. Mouth openingDefault: YES
    • BUYLips above Teeth above Jaw just lined up, price above the Lips
    • SELLLips below Teeth below Jaw just lined up, price below the Lips
  • 2. Fractal breakoutDefault: NO
    • BUYCloses above the up Fractal (Fractal above the Teeth)
    • SELLCloses below the down Fractal (Fractal below the Teeth)
  • 3. Teeth pullbackDefault: NO
    • BUYMouth open up, price touches the Teeth and closes above
    • SELLMouth open down, price touches the Teeth and closes below

When there is a signal

  1. 1Check conditions

    A new order opens only when all of these hold.

    • Within 00:00 - 23:59 (server time), spread no more than 250 points
    • Fewer than 10 orders, at most 5 BUY and 5 SELL
    • At most 1 order per H1 candle
  2. 2Open the order

    Stop loss beyond the Jaw, no take profit.

    • Volume 0.01 lot
    • BUY stop loss below the Jaw, SELL above the Jaw, plus 100 points
  3. 3Close trades

    Closes when price closes across the Jaw or the alligator closes its mouth.

    • BUY closes when price closes below the Jaw or the Lips drop below the Teeth
    • Break even and Trailing Stop can be added if you want
  • The EA computes the Alligator and Fractals itself, no indicator needs to be attached. Signals use closed candles.
  • The Alligator is a trend indicator: while the alligator sleeps (price ranging), the EA gets no mouth-opening signal.
  • To see the 3 lines and signals on the chart without auto trading: Alligator indicator CB-8921 (free).
Catches the start of a trend

The EA enters when the 3 Alligator lines have just separated in order, as the alligator wakes up and opens its mouth.

Fractal breakout

Turn on to enter when price closes beyond the latest Fractal outside the alligator's mouth, the Bill Williams way.

Teeth pullback

Turn on to add with-trend trades when price pulls back to the Teeth and moves on.

Stop loss beyond the Jaw

The Jaw is the slowest line; a close across the Jaw means the trend has failed.

Closes itself when the mouth closes

No fixed take profit: trades stay open until price closes across the Jaw or the Lips cross back over the Teeth.

Panel on the chart

A draggable panel shows Lips, Teeth, Jaw, the alligator's state and the latest Fractals.

Overview

Alligator Forex Robot (code GD-8821) is an EA for MetaTrader 4 and MetaTrader 5 that trades Bill Williams' Alligator and Fractals. The Alligator has 3 SMMA moving averages of the median price, each shifted forward a few candles: Jaw (SMMA 13 shifted 8), Teeth (SMMA 8 shifted 5) and Lips (SMMA 5 shifted 3).

When the 3 lines intertwine, the alligator is sleeping and price ranges. When Lips, Teeth and Jaw separate in order, the alligator opens its mouth and a trend begins. There are 3 scenarios switched on or off separately: mouth opening (default), Fractal breakout and Teeth pullback. Stop loss goes beyond the Jaw with no fixed take profit: trades close when price closes across the Jaw or the alligator closes its mouth.

Default settings are made for gold XAUUSD. On brokers quoting gold with 3 decimals (e.g. 2650.125), 1 gold price unit = 1000 points: an extra 100 points beyond the Jaw is 0.1. On brokers with 2 decimals, 1 unit = 100 points, so divide point settings by 10.

Example with default settings on H1: the 09:00 candle closes at 2643.458 as the 3 lines have just lined up: Lips 2640.262 above Teeth 2638.976, Teeth above Jaw 2638.911, the alligator opens its mouth upward. At 10:00 the EA opens BUY 0.01 lot at about 2643.458, stop loss 2638.811 (100 points below the Jaw). 13 candles later price closes below the Jaw at 2641.579 and the EA closes the trade.

The chart panel shows Lips, Teeth, Jaw, the alligator's state, the latest up and down Fractals, active scenarios and open trades. One single file runs a 7-day trial on demo accounts and runs live with a license. Every trade carries the comment "www.HoangTrong.com", default Magic number 8821.

Changelog

Version 1.024/11/2026

First release of Alligator Forex Robot.

  • Catches the start of a trend
  • Fractal breakout
  • Teeth pullback
  • Stop loss beyond the Jaw
  • Closes itself when the mouth closes
  • Panel on the chart

FAQ

Is the trial version different from the full version?

No. Each product has a single file. Without a license it runs for 7 days on a demo account. Buy a license for your account ID and it runs on your live account, no new download needed.

What is WebRequest and why does the EA need it?

WebRequest is the permission that lets an EA connect to an address on the internet. HoangTrong.com EAs use it to activate the license, then check themselves offline. See how to enable WebRequest.

How do I activate the license?

Buy a license for the correct MetaTrader account ID, then click Activation in the EA. You don't need to enter or store any key. After reinstalling, just activate again.

What if I want to use the EA on another account ID?

A license is permanently tied to the account ID it was bought for. To use the EA on another ID, buy an extra ID right on the product page: if you already own the license, each extra ID costs only 100,000 VND.

Multi-account licenses

Extra IDs only 100,000 VND/ID

Each license includes 1 account ID. Each extra ID is only 100,000 VND, for both retail and COMBO prices, valid forever.

  1. What is an account ID?It's your MT4/MT5 login number, shown in MetaTrader and in the email the broker sends when you open the account.
  2. Buy several IDs at onceEnter IDs separated by commas, for example 12345678, 87654321. Up to 20 IDs per order.
  3. Add IDs laterOnce you have a license, come back to this page, enter the new ID and click Buy a license. You're only charged 100,000 VND per ID, not the license price again.
Buying extra IDs: sign in firstSign in with the website account you bought the license with to get the 100,000 VND per ID price. With a different website account, the system cannot see your license and charges the full license price.
Example1 ID3 ID
Retail price500,000 VND700,000 VND
COMBO price5,000,000 VND5,200,000 VND
Add IDs later100,000 VND per ID (signed in)

Besides Alligator Forex Robot

Other products from HoangTrong.com

View all products
CB-8921IndicatorsMT4MT5

Alligator Indicator

Draws Bill Williams' 3 Alligator lines, BUY, SELL arrows when the alligator opens its mouth, price breaks a Fractal or pulls back to the Teeth, sends phone alerts.

  • Draws Jaw, Teeth, Lips
  • Mouth opening, Fractal breakout, Teeth pullback
  • Alert popup, sound and phone notifications
LicensingFree with any EA
Details
GD-8801Indicator-basedMT4MT5

RSI Overbought Oversold Forex Robot

The EA opens BUY and SELL orders on RSI signals in the overbought and oversold zones, with built-in stop loss, take profit, break-even and Trailing Stop.

  • 3 RSI entry scenarios, each can be switched on or off
  • Stop loss, take profit, break-even and Trailing Stop
  • Limits on order count, trading hours, spread, 1 order per candle
Retail price500,000 VND
Details
GD-8805Indicator-basedMT4MT5

Multi-Timeframe RSI Forex Robot

EA opens orders on RSI overbought and oversold signals, filters signals with the RSI of 5 timeframes switched on or off separately, multi-timeframe RSI table right on the chart.

  • 3 RSI entry scenarios, same as GD-8801
  • 5 RSI filter timeframes, each with its own inputs and on/off
  • Multi-timeframe RSI table on the chart, unused filters clearly marked
Retail price500,000 VND
Details

Need a different feature?

Order a custom EA built on your strategy, priced per feature.