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:
- Code it in MQL5 — Tenkan-sen, Kijun-sen and the two Senkou spans are each a short highest-high/lowest-low average (outline below).
- 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:
| Signal | Rule (starter) |
|---|---|
| Buy | Price above cloud + bullish (green) cloud |
| Sell | Price 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
| Parameter | Common default |
|---|---|
| Conversion Period | 9 |
| Base Period | 26 |
| Span B Period | 52 |
| Displacement | 26 |
| Timeframe | H1 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
| Issue | Lever |
|---|---|
| Whipsaw in ranges | Use a longer moving-average period, or add a Step 4 ATR volatility filter |
| Late entries | Read the trend on a higher timeframe in your own code |
| Session-dependent noise | Add 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].

