Ichimoku Cloud EA MT5 — No Code

Ichimoku is not a builder indicator yet: classic 9/26/52 settings, the iIchimoku logic in MQL5, and a no-code EMA crossover alternative.

📖 4 min read

📝 791 words

🏷️ MQL5 and Expert Advisors

Share this article:

Ichimoku Cloud EA for MT5 — No Code

Can I build an Ichimoku cloud EA for MT5 without coding?

Not in AlfaTactix today. Ichimoku Cloud is not one of the indicators the MT5 Strategy Builder supports, so it cannot be added as a Step 3 condition. Two honest paths:

  1. Code it in MQL5 — Tenkan-sen, Kijun-sen and the two Senkou spans are each a short highest-high/lowest-low average (outline below).
  2. Build a no-code trend EA with a supported indicator — an EMA or SMA crossover on Step 3. It follows a similar "price relative to a trend reference" idea, but with no projected cloud, so it is a different system.

Disclosure: Educational guide — not financial advice.

Related guides: Ichimoku Indicator (academy) · MA Crossover EA — No Code · Build EA Without Coding · EA Strategy Library


What Is an Ichimoku Cloud EA?

An Ichimoku Cloud EA automates rules based on the Kumo (cloud) and price position:

SignalRule (starter)
BuyPrice above cloud + bullish (green) cloud
SellPrice below cloud + bearish (red) cloud

Components: Tenkan-sen, Kijun-sen, Senkou Span A/B (cloud), Chikou Span — see Ichimoku academy guide.


Classic Ichimoku Settings and When It Works

ParameterCommon default
Conversion Period9
Base Period26
Span B Period52
Displacement26
TimeframeH1 or H4

Works best: Clear trends with price consistently on one side of the cloud.

Struggles in: Choppy ranges inside the cloud — frequent flip signals.


Ichimoku Logic in MQL5

Each Ichimoku line is a short highest-high/lowest-low average — there is no single built-in iIchimoku handle returning all lines at once in the way this article's builder version once assumed, but MQL5's iIchimoku does exist and returns the Tenkan, Kijun and Senkou buffers:

// OnInit
ichiHandle = iIchimoku(_Symbol, PERIOD_H1, 9, 26, 52);

// OnTick, once per new bar — buffer indices per MQL5 docs
CopyBuffer(ichiHandle, 0, 1, 1, tenkan);   // Tenkan-sen
CopyBuffer(ichiHandle, 1, 1, 1, kijun);    // Kijun-sen
CopyBuffer(ichiHandle, 2, 1, 1, senkouA);  // Senkou Span A
CopyBuffer(ichiHandle, 3, 1, 1, senkouB);  // Senkou Span B
bool aboveCloud = close[1] > MathMax(senkouA[0], senkouB[0]);
bool belowCloud = close[1] < MathMin(senkouA[0], senkouB[0]);

Remember the cloud is displaced forward by the Displacement value (26 bars by default) — read the buffer at the correct shift for the bar you are testing against.


A No-Code Trend EA With Supported Indicators

The MT5 form supports the market's most-used indicators: RSI, SMA, EMA, WMA, MACD, Stochastic, Williams %R, CCI, Momentum, Bollinger Bands, ATR, Volume and OBV. The closest no-code build is an EMA or SMA crossover on Step 3 — see MA Crossover EA — No Code — optionally combined with a Step 4 market session or ATR volatility filter.

Honest limit: a crossover has no forward-projected cloud and no Chikou lagging-span confirmation. It is a simpler trend idea, not an Ichimoku equivalent.


Export, Compile, and Backtest

Compile your .mq5 (hand-written, or exported from Code Generator for the supported-indicator version) with F7 → Strategy Tester Every tick → Strategy Tester vs Live.


Improvements: Filters and Risk

IssueLever
Whipsaw in rangesUse a longer moving-average period, or add a Step 4 ATR volatility filter
Late entriesRead the trend on a higher timeframe in your own code
Session-dependent noiseAdd a Step 4 market session filter


Tactix AI on this workflow

AlfaTactix includes Tactix AI: use Tactix Studio to describe your idea in plain language and draft timeframes, signals, filters, and risk into the same six-step Strategy Builder form — or open Tactix Guide on any step when you only need a field explained. Review every value, then export MQL5 or Pine Script from Code Generator (form-first — not untested prompt-to-code).

Next Steps

Before you code the full cloud: start with just the Tenkan/Kijun relationship on a chart and confirm your MQL5 reads match what you see visually, before adding the Senkou spans and Chikou span.

References: Investopedia — Ichimoku [1] · MetaTrader 5 Strategy Tester [2].

Frequently Asked Questions

Not in AlfaTactix today. Ichimoku Cloud is not among the indicators the MT5 Strategy Builder supports. You can code the Tenkan-sen, Kijun-sen and Senkou spans yourself in MQL5, or build a no-code trend EA with a supported indicator such as an EMA or SMA crossover, which captures a similar "price relative to a trend reference" idea without the cloud.

Conversion Period 9, Base Period 26, Span B Period 52, Displacement 26 are Goichi Hosoda's original values, still the most common defaults on H1 and H4.

No — it is a different system. The cloud is a projected band built from four separate lines with built-in forward displacement; a two-line EMA crossover has no equivalent projection or cloud thickness. Treat it as a substitute trend idea, not an equivalent rule.

No. Educational guide only. Cloud-based rules lag in fast reversals, same as most trend-following systems. Backtest and Demo are required before any live use.

Read /academy/indicators/ichimoku for Tenkan, Kijun, Senkou spans and Chikou, then use the MQL5 outline below as a starting point for your own implementation.

References

  1. Investopedia. Ichimoku Kinko Hyo: Understanding Its 5 Key Components. https://www.investopedia.com/terms/i/ichimokuchart.asp
  2. MetaQuotes. MetaTrader 5 Built-in Trading Strategy Tester. https://www.metatrader5.com/en/automated-trading/strategy-tester

AlfaTactix is a no-code strategy builder for MetaTrader 5 (MQL5) and TradingView (Pine Script) traders who design and manage rule-based strategies.

Trading involves substantial risk of loss. AlfaTactix generates code from the rules you define and does not provide financial advice. Past or backtested performance does not guarantee future results.

© 2026 AlfaTactix. All rights reserved.