MT4 & MT5 · Trending Pairs

🐊 Aligator Gozaimasu

Bill Williams Alligator + Awesome Oscillator + Stochastic + RSI — confirmed across up to 4 timeframes. Buys in uptrends, sells in downtrends. Single-entry, trend-following EA.

Open Source — Free to use. Expires 2026-04-28. By Syarief Azman.

Strategy

How It Trades

Four indicators across multiple timeframes must all agree before entering any trade.

📊 Buy Signal Requirements (all must be true)

Alligator Bullish: Lips > Teeth > Jaw (lines spreading upward)
Awesome Oscillator: AO > 0 (bullish momentum)
Stochastic: Main < 80 AND Main > Signal (still rising, not overbought)
RSI: RSI < 70 (not exhausted)

📉 Sell Signal Requirements (all must be true)

Alligator Bearish: Lips < Teeth < Jaw (lines spreading downward)
Awesome Oscillator: AO < 0 (bearish momentum)
Stochastic: Main > 20 AND Main < Signal (still falling, not oversold)
RSI: RSI > 30 (not exhausted)
💡 Entry timeframe: On the lowest TF of the selected mode, instead of checking Lips > Teeth > Jaw, the EA checks that price (Open[0]) is above/below the Jaw — ensuring the current candle has actually broken into the trend.

🕐 Multi-Timeframe Modes

ModeLabelTimeframes (Highest → Lowest)Best For
AANo MTFCurrent chart TF onlyQuick testing
BBScalperzH1 → M15 → M5 → M1Scalping
CCIntradayzH4 → H1 → M15 → M5Intraday (default)
DDSwingzD1 → H4 → H1 → M15Swing trading
EEPositionzW1 → D1 → H4 → H1Position trading

⚠️ The chart timeframe doesn't matter — the EA fetches data from the configured timeframes internally.

Features

Core Features

Everything built into the EA.

🐊

Bill Williams Alligator

Core trend detection using the Alligator indicator — Jaw, Teeth, and Lips lines must align in the correct order to confirm a trend.

📊

Awesome Oscillator

Momentum confirmation via Bill Williams' AO. Positive = bullish, Negative = bearish. Filters out weak moves.

📈

Stochastic Filter

Prevents late entries — buys only when not overbought (< 80), sells only when not oversold (> 20). Main vs Signal crossover required.

📉

RSI Confirmation

Additional exhaustion filter — RSI must be below 70 for buys and above 30 for sells, avoiding entries at extreme levels.

🕐

Multi-Timeframe Analysis

5 MTF modes: trade only when ALL 4 timeframes agree on direction. Dramatically reduces false signals.

🔄

Close on Reversal

When a reversal signal appears, automatically closes opposite trades before opening new ones — always positioned with the trend.

📈

Auto-Compounding

6 compounding modes scale lot size with your equity growth — from very conservative to aggressive risk profiles.

🎲

Martingale Recovery

Configurable lot multiplier after losses (default 2.25x) with reset-on-profit. MaxLots safety cap prevents runaway sizing.

Setup

Installation Guide

Get up and running in minutes.

1

Download the EA (MT4 or MT5)

Click the Download MT4 or Download MT5 button above to get the compiled .ex4 or .ex5 file.
2

Open MT4 Data Folder

Open MetaTrader 4 or 5. Click File → Open Data Folder. A Windows Explorer window opens. Navigate to MQL4\Experts\ (MT4) or MQL5\Experts\ (MT5).
3

Copy the EA File

Place the downloaded .ex4 or .ex5 file into the appropriate MQL4\Experts\ or MQL5\Experts\ folder.
4

Attach to Chart

In MT4/MT5, press Ctrl+N to open the Navigator. Right-click Expert AdvisorsRefresh. Find EA Aligator Gozaimasu and drag it onto a chart of your chosen trending pair (EURUSD, GBPUSD, XAUUSD, etc.).
5

Configure Settings

In the EA dialog:
Common tab: ☑ Check Allow live trading
Inputs tab: Choose your MultiTimeFrame_Mode (default: Intradayz), set Lots, Stoploss_Pips, Takeprofit_Pips
Click OK. Make sure Auto Trading is enabled (green icon in toolbar).
6

Verify It's Running

Check the Experts tab at the bottom of MT4. You should see the EA name displayed and the chart comment showing your equity, lot size, and trade counts. The EA will wait for all indicators to align before placing trades.
Configuration

EA Settings

Fine-tune every parameter to match your trading style.

ParameterTypeDefaultDescription
Lotsdouble0.01Base lot size for each trade
Takeprofit_Pipsint50Take profit distance in pips
Stoploss_Pipsint50Stop loss distance in pips
Close_On_ReversalbooltrueClose opposite trades when a reversal signal appears
MultiTimeFrame_ModeenumCC (Intradayz)Which MTF mode to use — No MTF, Scalperz, Intradayz, Swingz, or Positionz
AutoCompounding_ModeenumA (Off)Auto lot-sizing based on account equity
ECN_BrokerboolfalseSend order without SL/TP first, then modify — required for ECN brokers
TrailingStopboolfalseEnable/disable trailing stop
TrailingStop_Pipsint25Trailing stop distance in pips from current price
TrailingGap_Pipsint7Minimum pip distance before trailing activates
LotMultiplierOnLossdouble2.25Multiply lot size by this after a losing trade
LotsResetOnProfitbooltrueReset to base lot after a winning trade
MaxLotsdouble999Maximum allowed lot size (safety cap)
HoursFrom / HoursToint0 / 24Trading hours filter (local time). Supports overnight ranges.
Monday–SundayboolAll trueEnable/disable trading on specific weekdays
Email_NotificationbooltrueSend trade signals via email
MT4/MT5_MessagesbooltrueSend push notifications to MT4/MT5 mobile app
Important

Risk Warnings

⚠️

Always test on a demo account first before using real money.

🎲

Martingale is risky — the default 2.25x multiplier means after 3 consecutive losses, your lot is ~11x the base size. Set MaxLots to a reasonable cap.

💰

Recommended starting capital: $100 USD minimum per pair.

📊

Best on trending pairs — EURUSD, GBPUSD, USDJPY, XAUUSD, indices. Avoid choppy/ranging markets.

🖥️

VPS recommended for 24/7 uninterrupted operation.

📈

Past performance does not guarantee future results. AI predictions and indicators can be wrong.

FAQ

Frequently Asked Questions

Trending pairs like EURUSD, GBPUSD, USDJPY, XAUUSD, and indices. The Alligator indicator works best on instruments that trend clearly. Avoid ranging/choppy pairs.

The multi-timeframe requirement is very strict — all 4 timeframes × 4 indicators must agree. Sometimes it takes hours or days to find a valid signal. This is by design — quality over quantity.

Yes! Attach the EA to different charts. Each instance is independent. The MagicNumber ensures trades don't interfere.

Martingale carries significant risk. The default 2.25x multiplier means after 3 consecutive losses, your lot is ~11x the base size. Always set MaxLots to a reasonable value.

Yes — trades are closed by TP, SL, trailing stop, or the Close on Reversal feature. The EA does not leave trades unmanaged.

It doesn't matter — the EA fetches data from its configured timeframes internally. Use any chart timeframe you prefer for viewing.

Yes. Open MT4/MT5 → Strategy Tester (Ctrl+R), select the EA, choose a pair and date range, and click Start. Multi-timeframe modes require history data for all relevant timeframes.

Yes! Both MT4 (.ex4) and MT5 (.ex5) versions are available. The MT5 version uses the same strategy with CTrade class for order management and indicator handles for optimized performance.