Skip to content
FXNook HubBeta

Alex / Ichimoku Kumo Breakout EA for MT5

MetaTrader 5Expert AdvisorMITCompiled · build 6333
AlexFirst version.build 6333v1.06 hours ago1 version
README

Overview

Free Ichimoku Expert Advisor: trades closes that break out of the Kumo cloud with Tenkan/Kijun confirmation, with a Kijun or ATR stop and R target.

FXN Ichimoku Kumo Breakout is a free, open-source Expert Advisor for MetaTrader 4 and MetaTrader 5 that trades closes out of the Ichimoku cloud. It calculates all Ichimoku lines itself, so the logic is identical on both platforms.

How it works

  • Tenkan = (highest high + lowest low) / 2 over 9 bars, Kijun the same over 26 bars. Span A = (Tenkan + Kijun) / 2 and Span B = midpoint of the last 52 bars, both shifted 26 bars forward to form the Kumo.
  • Buy when a bar closes above the cloud top after closing at or below it, with Tenkan above Kijun and the close above Kijun.
  • Sell is the mirror below the cloud bottom.
  • Stop loss: Beyond Kijun-sen puts it at Kijun minus buffer x ATR (buys), moved out to Min stop distance x ATR if closer. ATR multiple uses ATR x ATR stop from entry.
  • Take profit = entry plus stop distance x R; R = 0 disables it.
  • Lot size (risk mode): balance x risk % / money lost per lot at the stop, rounded down to the lot step.

Inputs

InputDefaultWhat it does
Tenkan-sen period9Conversion line period.
Kijun-sen period26Base line period; also the cloud displacement.
Senkou Span B period52Period of the slow cloud edge.
Stop modeBeyond Kijun-senBeyond Kijun-sen or ATR multiple.
Kijun stop buffer (x ATR)0.25Extra room beyond the Kijun-sen in Kijun mode.
Min stop distance (x ATR)0.5Kijun stops closer than this are moved out to it.
ATR period14Average True Range period.
ATR stop (x ATR)2.0Stop distance in ATR mode.
Take profit (R)2.0Target = stop distance times this; 0 = no take profit.
Use risk % sizingtruetrue = lot from risk %; false = fixed lot.
Risk per trade (% of balance)1.0Balance share lost if the stop is hit.
Fixed lot0.10Lot used when risk sizing is off.
Magic number410105Identifies this EA's trades.
Max spread (points)30No entry above this spread; 0 = off.
Max slippage (points)10Allowed fill deviation.
Order commentFXN IchimokuBreakoutText saved on each order.
Use trading hoursfalseEntries only inside the window; exits any time.
Start hour (0-23)7First hour with entries.
End hour (0-23)20Entries stop at this hour; may wrap past midnight.

How to use it

  1. Copy FXN_IchimokuBreakout.mq4 to MQL4/Experts (MT4) or FXN_IchimokuBreakout.mq5 to MQL5/Experts (MT5); File > Open Data Folder shows where.
  2. Refresh the Navigator, drag the EA onto a chart and turn on AutoTrading (MT4) or Algo Trading (MT5).
  3. Suggested start: H4 or D1 on FX majors, gold or indices, standard 9/26/52, Kijun stop with a 0.25 ATR buffer, target 2R, risk 0.5-1 %.
  4. Test in the Strategy Tester and on a demo account first.

Good to know

  • 9/26/52 dates from a six-day trading week; some traders use 20/60/120 on 24-hour markets.
  • Breakouts can fail back into the cloud; in choppy markets the Kijun stop is hit often.
  • Trades end at the stop or target; the Chikou span is not used.
  • Closed-bar signals that do not repaint; one entry per bar and one trade per symbol and magic number. No martingale, grid or averaging down.
  • Stops respect broker stop and freeze levels. If risk sizing gives less than the minimum lot, the trade is skipped and logged. On MT5 netting accounts it will not trade a symbol that already has another position.

Trading carries risk. Test on a demo account first; past results do not predict future results.

At a glance

What it is
A free Expert Advisor for MetaTrader 5, written in MQL5.
What it does
Free Ichimoku Expert Advisor: trades closes that break out of the Kumo cloud with Tenkan/Kijun confirmation, with a Kijun or ATR stop and R target.
Shared by
Alex
Licence
MIT
Version
1.0 (1 Dec 2026)
Settings
19 inputs
Lab check
Compiled with MetaEditor build 6333 for MT5 on 1 Dec 2026: 0 errors, 0 warnings.
Price
Free to download

Settings read from the code

InputTypeDefaultNote
InpTenkanint9Tenkan-sen period
InpKijunint26Kijun-sen period
InpSenkouBint52Senkou Span B period
InpStopModeENUM_ICHI_STOP_MODEICHI_STOP_KIJUNStop mode
InpKijunBufferAtrdouble0.25Kijun stop buffer (x ATR)
InpMinStopAtrdouble0.5Min stop distance (x ATR)
InpAtrPeriodint14ATR period
InpStopAtrMultdouble2.0ATR stop (x ATR)
InpTargetRdouble2.0Take profit (R)
InpUseRiskPercentbooltrueUse risk % sizing
InpRiskPercentdouble1.0Risk per trade (% of balance)
InpFixedLotdouble0.10Fixed lot
InpMagiculong410105Magic number
InpMaxSpreadPointsint30Max spread (points)
InpSlippagePointsint10Max slippage (points)
InpOrderCommentstringFXN IchimokuBreakoutOrder comment
InpUseTradingHoursboolfalseUse trading hours
InpStartHourint7Start hour (0-23)
InpEndHourint20End hour (0-23)

How to use it

  1. Download the compiled file (or the source and compile it in MetaEditor).
  2. Put it in MetaTrader: File → Open Data Folder → MQL5 → Experts, then refresh the Navigator.
  3. Test it on a demo account before any real money.
  4. Want changes? Open a copy in your Lab and ask for them in plain words.