Ichimoku Cloud Indicator
The Ichimoku Cloud (Ichimoku Kinko Hyo) is an all-in-one indicator that defines support and resistance, identifies trend direction, gauges momentum, and generates trading signals, all from a single overlay on the chart.
What is the Ichimoku Cloud Indicator?​
Developed in the late 1930s by Japanese journalist Goichi Hosoda, who spent 30 years refining it before publishing, the Ichimoku Cloud is built from five components:
- Tenkan-sen (Conversion Line): midpoint of the last 9 periods
- Kijun-sen (Base Line): midpoint of the last 26 periods
- Senkou Span A (Leading Span A): average of Tenkan-sen and Kijun-sen, plotted 26 periods ahead
- Senkou Span B (Leading Span B): midpoint of the last 52 periods, plotted 26 periods ahead
- Chikou Span (Lagging Span): the closing price, plotted 26 periods in the past
The space between Senkou Span A and Senkou Span B forms the "cloud" (Kumo).
How to Read the Ichimoku Cloud​
- Price above the cloud: uptrend
- Price below the cloud: downtrend
- Tenkan-sen crosses above Kijun-sen: potential bullish signal, similar to a fast/slow MA crossover
- Cloud thickness: a thicker cloud suggests a stronger support/resistance zone; a thin cloud suggests weaker, more easily broken support/resistance
Best Use Cases​
- Trend Identification: a quick visual read of whether the market is trending up, down, or ranging.
- Momentum & Trend Strength: the relationship between Tenkan-sen and Kijun-sen signals shifts in momentum.
- Support and Resistance: the cloud itself acts as a dynamic zone, with thickness indicating strength.
Ichimoku Cloud PineScript for TradingView​
Here's a ready-to-use Ichimoku-style strategy template. Paste it into the Pine Editor, adjust the conversion/base/lagging span periods, target, and stop loss to your preference, and backtest it.
To learn how to add this pinescript in TradingView, click here.
This strategy is for demonstration purposes only and is not intended for actual trading. AlgoTest is not responsible for any profit or loss arising from the use of this sample strategy.
//@version=5
strategy("Ichimoku Cloud Strategy", overlay=true)
// Input parameters
conversion_period = input.int(9, title="Conversion Line Period")
base_period = input.int(26, title="Base Line Period")
lagging_span2_period = input.int(52, title="Lagging Span 2 Period")
displacement = input.int(26, title="Displacement")
target_points = input.int(100, title="Target Points")
stop_loss_points = input.int(50, title="Stop Loss Points")
// Calculate Ichimoku Cloud
tenkan_sen = ta.sma((high + low) / 2, conversion_period)
kijun_sen = ta.sma((high + low) / 2, base_period)
senkou_span_a = ((tenkan_sen + kijun_sen) / 2)[displacement]
senkou_span_b = ta.sma((high + low) / 2, lagging_span2_period)[displacement]
// Strategy logic
long_condition = close > senkou_span_a and close > senkou_span_b
short_condition = close < senkou_span_a and close < senkou_span_b
// Plot Ichimoku Cloud
plot(senkou_span_a, color=color.blue, title="Senkou Span A")
plot(senkou_span_b, color=color.red, title="Senkou Span B")
// Strategy entry
if long_condition
strategy.entry("Long", strategy.long)
if short_condition
strategy.entry("Short", strategy.short)
// Calculate target and stop loss levels
long_target = strategy.position_avg_price + target_points
long_stop_loss = strategy.position_avg_price - stop_loss_points
short_target = strategy.position_avg_price - target_points
short_stop_loss = strategy.position_avg_price + stop_loss_points
// Strategy exit
strategy.exit("Long Exit", "Long", limit=long_target, stop=long_stop_loss)
strategy.exit("Short Exit", "Short", limit=short_target, stop=short_stop_loss)
Once you've backtested it, you can connect the alert to AlgoTest to automate live execution without manually watching the chart.
FAQ​
Is Ichimoku Cloud effective?​
Yes, the Ichimoku Cloud is effective for traders who need a comprehensive view of the market's trends, momentum, support, and resistance levels in a single overlay.
Which Ichimoku Cloud settings are best?​
The standard settings (9, 26, 52) are widely regarded as the best starting point for daily trading, but adjustments might be necessary based on specific market conditions and trading timeframes.
What is the win rate of an Ichimoku Cloud strategy?​
The success rate can vary widely among traders, but when used correctly, the Ichimoku Cloud has a reputation for providing reliable signals, particularly in trending markets.
How do you trade with the Ichimoku Cloud?​
Consider entering long positions when price is above the cloud and short positions when it's below. Look for Tenkan-sen and Kijun-sen crosses as additional confirmation.
What are the best settings for Ichimoku?​
While the default settings (9, 26, 52) are a good starting point, traders may find that adjusting these to fit the specific asset or market conditions enhances the indicator's effectiveness.
For more insights and detailed analysis tools, visit AlgoTest Signals.