Momentum Ichimoku Cloud Trading Strategy
This strategy utilizes the golden cross and dead cross signals formed by the conversion and base lines of the classic Ichimoku Kinko Hyo indicator to determine the market trend direction and discover potential buy…

Overview
This strategy utilizes the golden cross and dead cross signals formed by the conversion and base lines of the classic Ichimoku Kinko Hyo indicator to determine the market trend direction and discover potential buy and sell opportunities. A buy signal is generated when the conversion line crosses above the base line, while a sell signal is generated when it crosses below. Integrating the Senkou Span B line of the Ichimoku cloud identifies the longer-term trend direction and effectively filters out some undesirable trade signals.
Strategy Logic
The strategy is based on the following main principles:
The conversion line of the Ichimoku indicator represents recent price momentum, while the base line represents the mid-to-long-term price trend. A crossover of the conversion line above the base line indicates stronger near-term momentum versus the longer-term trend, presenting a good opportunity to enter trades. Conversely, a crossover below implies a need to be cautious of closing out trades.
The Senkou Span B line of the Ichimoku cloud is effective at gauging the direction of the longer-term trend. Trade signals are only generated when the Span B direction aligns with the signal, avoiding random trades against the major trend.
Combining the crossover signals and Ichimoku cloud judgment allows capitalizing on strong pullback opportunities in an upward trending market for outsized gains.
If price breaks the Senkou Span A or Senkou Span B after a buy trigger, the mid-to-long-term trend is considered changed, necessitating a stop loss exit.
Advantages
The key advantages of this strategy include:
Flexible Ichimoku parameters allow tracking price changes across different timeframes.
Ichimoku cloud has strong capabilities in determining major trend direction, avoiding random trades.
Crossover system is simple and clear, easy to interpret and automate trades.
Combines two indicators for multi-timeframe assessment without generating false signals.
Simple, aggressive strategy suitable for capitalizing on mid-term pullback opportunities for higher gains.
Risks
The main risks of this strategy are:
Ichimoku parameters are sensitive, improper settings across timeframes lead to bad signals.
Some degree of random trading risk as mid-term signals may deviate from major trend.
Limitations in entry timing with just two indicators.
Chasing momentum trades can lead to capital loss.
Potential for over-optimization across different instruments.
Enhancement Opportunities
The strategy can be enhanced via:
Testing different Ichimoku parameter combinations for optimal settings.
Adding filters like MACD, RSI to improve robustness.
Incorporating stop loss techniques like trend line, trailing stops to control risk.
Optimizing position sizing based on market volatility.
Robustness testing across instruments to prevent overfitting.
Using machine learning for dynamic auto-optimization.
Conclusion
This strategy effectively combines Ichimoku Kinko Hyo and crossover systems for mid-term trend tracking. The approach is simple and clear for practical application. Careful parameter optimization, position sizing and risk control can reduce trading risks. Overall, it demonstrates strong profit potential worth experimenting with and refining further.
Parameters
| Name | Default | What it controls |
|---|---|---|
| v_input_1 | 9 | Conversion Line Periods |
| v_input_2 | 26 | Base Line Periods |
| v_input_3 | 52 | Leading Span B Periods |
| v_input_4 | 26 | Displacement |
Source Pine Script
/*backtest
start: 2023-10-16 00:00:00
end: 2023-11-15 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Ichimoku Cloud Strategy", overlay=true)
// Define Ichimoku Cloud components
conversionPeriods = input(9, title="Conversion Line Periods")
basePeriods = input(26, title="Base Line Periods")
leadingSpanBPeriods = input(52, title="Leading Span B Periods")
displacement = input(26, title="Displacement")
// Calculate Ichimoku Cloud components
tenkanSen = ta.sma(close, conversionPeriods)
kijunSen = ta.sma(close, basePeriods)
senkouSpanA = (tenkanSen + kijunSen) / 2
senkouSpanB = ta.sma(close, leadingSpanBPeriods)
// Plot Ichimoku Cloud components
p1 = plot(tenkanSen, color=color.green, linewidth=2, title="Tenkan Sen")
p2 = plot(kijunSen, color=color.red, linewidth=2, title="Kijun Sen")
p3 = plot(senkouSpanA, color=color.blue, linewidth=2, title="Senkou Span A", offset=displacement)
p4 = plot(senkouSpanB, color=color.orange, linewidth=2, title="Senkou Span B", offset=displacement)
fill(p3, p4, color=color.purple, transp=30, title="Cloud")
// Define strategy conditions
enterLong = ta.crossover(tenkanSen, kijunSen) and close > senkouSpanA[displacement] and close > senkouSpanB[displacement]
exitLong = ta.crossunder(tenkanSen, kijunSen) or close < senkouSpanA[displacement] and close < senkouSpanB[displacement]
// Execute strategy
if (enterLong)
strategy.entry("Long", strategy.long)
if (exitLong)
strategy.close("Long")
Published by ChaoZhang on the FMZ strategy square · last modified 2023-11-16. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Momentum-Ichimoku-Cloud-Trading-Strategy.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Fukuiz Octa EMA IchimokuPine Script · Momentum · 10m
- Ichimoku Oscillator with Stochastic Momentum Index StrategyPine Script · Momentum · 1d
- Multi Indicator Comprehensive Analysis Quantitative Trading Strategy Trend Momentum and Volatility Collaborative Prediction ModelPine Script · Momentum · 3m
- Cloud Momentum Crossover Strategy with Moving Averages and Volume ConfirmationPine Script · Momentum · 1d
- Moving Average Convergence Momentum Cloud StrategyPine Script · Momentum · 1d
- MACD RSI Ichimoku Momentum Trend Following Long StrategyPine Script · Momentum · 1d