Skip to main content

Ichimoku Cloud EA Template for MetaTrader 5

The Ichimoku Cloud (Ichimoku Kinko Hyo) is a comprehensive trend-following system originally developed for Japanese stock markets. This free EA template enters when price breaks above or below the Ichimoku Cloud, using Tenkan-sen/Kijun-sen crossover for confirmation. It includes ATR-based risk management and works well across multiple trading sessions. Build it in AlgoStudio without coding, customize the parameters, and export a production-ready MQL5 Expert Advisor in minutes.

What Is an Ichimoku Cloud Strategy?

An Ichimoku Cloud strategy uses the Kumo (cloud) as a dynamic support and resistance zone. The cloud is formed by two lines \u2014 Senkou Span A and Senkou Span B \u2014 projected 26 periods into the future. When price is above the cloud, the trend is bullish. When price is below the cloud, the trend is bearish. A breakout through the cloud signals a potential trend change, and the thickness of the cloud at the breakout point indicates the strength of the support or resistance being broken.

This is a trend-following approach that provides more context than a simple moving average crossover. The cloud gives you support/resistance, trend direction, and trend strength all in one indicator. The Tenkan-sen (conversion line) and Kijun-sen (base line) crossover adds a momentum confirmation layer, similar to a fast/slow MA crossover but adapted to the Ichimoku framework.

The system was developed by Japanese journalist Goichi Hosoda over 30 years of research and published in 1968. It was originally designed for daily charts of Japanese equities but has proven effective across forex, commodities, and indices on multiple timeframes. Its multi-signal approach \u2014 combining cloud, crossover, and lagging confirmation \u2014 makes it one of the most complete single-indicator systems available.

How This EA Template Works

BUY SIGNAL: Price breaks above the Ichimoku Cloud and Tenkan-sen crosses above Kijun-sen
SELL SIGNAL: Price breaks below the Ichimoku Cloud and Tenkan-sen crosses below Kijun-sen
EXIT: Stop loss at 1.5x ATR(14) or take profit at 2:1 risk-reward ratio

Unlike most templates that focus on the London session, the Ichimoku Cloud strategy works well across multiple sessions including the Asian session. This is because the indicator was designed for Japanese markets and its parameters naturally align with Asian and London session dynamics. The EA can trade during both sessions, providing more opportunities, especially on pairs like USDJPY.

The dual requirement of cloud breakout AND Tenkan/Kijun crossover creates a high-quality entry filter. Cloud breakouts alone can be false signals \u2014 price may briefly pierce the cloud and reverse. Requiring the TK crossover confirms that short-term momentum aligns with the breakout direction, significantly reducing false entries. The trade-off is a lower win rate (35\u201345%) compensated by larger winning trades.

Default Parameters

These defaults work well on trending pairs, especially USDJPY, on H4/D1. All parameters are exported as input variables so you can optimize them in the MT5 Strategy Tester.

ParameterValueType
Tenkan Period9Ichimoku
Kijun Period26Ichimoku
Senkou B Period52Ichimoku
Stop Loss1.5x ATR(14)ATR-based
Take Profit2:1 R:RRisk-reward
SessionLondon/Asian (multiple)Timing
Max Trades/Day2Risk
Position Sizing1% risk per tradeRisk

How to Build This EA Without Coding

1. Create a new project in AlgoStudio

Sign up for free (no credit card required) and click “New Project”. Name your project “Ichimoku Cloud Strategy” and open the visual builder canvas.

2. Add timing and indicator blocks

Drag a Trading Sessions block onto the canvas and select the London and Asian sessions. Add an Ichimoku Cloud block \u2014 set Tenkan to 9, Kijun to 26, and Senkou B to 52. The Ichimoku block provides the cloud boundaries, Tenkan-sen, and Kijun-sen values automatically. Connect the Ichimoku block to the timing block.

3. Add trade execution and risk management

Add Place Buy and Place Sell blocks. Connect a “Price above Cloud AND Tenkan crosses above Kijun” condition to the Buy block, and “Price below Cloud AND Tenkan crosses below Kijun” to the Sell block. Add Stop Loss (set to 1.5x ATR with period 14), Take Profit (set to 2:1 risk-reward ratio), position sizing (1% risk per trade), and Max Trades Per Day (2).

4. Export, backtest, and optimize

Click Export to generate a .mq5 file. Load it into MetaTrader 5 and backtest on USDJPY H4 with at least 3 years of historical data. The Ichimoku system generates fewer trades than faster indicators, so you need a longer backtest period for statistical reliability. Use the MT5 Strategy Tester optimizer to test Tenkan values from 7\u201312 and Kijun from 22\u201330. Demo trade for 1\u20133 months before going live.

Optimization Tips

Respect the original parameter ratios

Hosoda's original parameters (9, 26, 52) maintain a specific mathematical relationship: Kijun is roughly 3x Tenkan, and Senkou B is roughly 2x Kijun. When optimizing, try to maintain these ratios. For example, 7/22/44 or 10/30/60 preserve the proportional relationship. Breaking these ratios significantly can make the cloud behave unpredictably.

Use the cloud thickness as a confidence filter

A thin cloud is easier to break through and more likely to produce false breakouts. A thick cloud represents strong support or resistance, and a breakout through it is more significant. Consider adding a minimum cloud thickness filter \u2014 only take breakout signals when the cloud is at least a certain width in pips. This reduces false signals during transitional periods.

Consider higher timeframes for stronger signals

Ichimoku was designed for daily charts, and its signals become increasingly reliable on higher timeframes. If you are getting too many false breakouts on H4, try switching to daily charts. You will get fewer trades but each cloud breakout carries more weight. Many professional Ichimoku traders use D1 for signals and H4 for entry timing.

Frequently Asked Questions

What timeframe works best for the Ichimoku Cloud strategy?
H4 (4-hour) and D1 (daily) timeframes produce the best results with Ichimoku. The indicator was originally designed for daily charts, and the default parameters (9, 26, 52) are calibrated for that timeframe. H4 is a good compromise between signal frequency and quality. Lower timeframes like H1 can work but generate noisier signals. Avoid M15 and below — the cloud becomes unreliable.
Which currency pairs work best with Ichimoku?
Trending pairs with clear directional moves: USDJPY is the classic Ichimoku pair (the system was developed for Japanese markets), along with EURUSD, GBPUSD, and AUDUSD. The strategy catches large moves, so pairs that trend well are essential. Avoid range-bound pairs like EURGBP where cloud breakouts frequently fail.
What win rate should I expect from this strategy?
A well-optimized Ichimoku Cloud strategy typically wins 35-45% of trades. This is lower than mean reversion strategies, but winning trades are significantly larger because you hold through extended trends. The multiple confirmation layers (cloud breakout + TK crossover) filter out many false signals, improving the overall quality of entries.
Should I change the default Ichimoku settings (9, 26, 52)?
The 9/26/52 settings are the original parameters developed by Goichi Hosoda after decades of research. They work well on daily and H4 charts. Some traders use 10/30/60 for a slightly smoother cloud, or 7/22/44 for faster signals on H1. Start with the defaults and only adjust after thorough backtesting — the original settings are robust across most markets.
What are the different components of Ichimoku and what do they mean?
The Ichimoku system has five components. Tenkan-sen (Conversion Line, period 9) shows short-term momentum. Kijun-sen (Base Line, period 26) shows medium-term momentum. Senkou Span A and Senkou Span B form the Cloud (Kumo) — price above the cloud is bullish, below is bearish. Chikou Span (Lagging Span) confirms by comparing current close to the close 26 periods ago. This template uses cloud breakouts with TK crossover for a streamlined approach.

Build the Ichimoku Cloud EA in minutes

Create this strategy with AlgoStudio's visual builder. Free plan available \u2014 no credit card required.

Start Validating — Free

Risk Warning: Trading in financial markets involves substantial risk of loss and is not suitable for every investor. Past performance does not guarantee future results. Always test strategies on a demo account first. AlgoStudio is a strategy validation platform — it does not provide financial advice or guarantee profits. See our Terms of Service for full details.