A multi-line system that aims to show trend direction, equilibrium, and potential support/resistance on a single chart.
Ichimoku Cloud, or Ichimoku Kinko Hyo ("one-glance equilibrium chart"), is a trend-following framework developed by Japanese journalist Goichi Hosoda and his team, refined over decades and published in its complete form in 1969. Rather than a single line, it combines five components: the Tenkan-sen (conversion line), Kijun-sen (base line), Senkou Span A and Senkou Span B (which together form the "cloud," or Kumo), and the Chikou Span (lagging line). The shaded area between the two Senkou spans is the cloud that gives the indicator its name. It is designed to convey trend, equilibrium, and potential support/resistance zones at a glance. Like all indicators, it is descriptive rather than predictive: it summarizes past and current price and offers no guarantee of future price behaviour. All trading carries risk of loss.
Each line is a straightforward calculation based on highs and lows over set lookback periods (defaults 9, 26, 52). The Tenkan-sen is the midpoint of the highest high and lowest low over the last 9 periods; the Kijun-sen is that same midpoint over 26 periods. Senkou Span A is the average of the Tenkan and Kijun lines, plotted 26 periods into the future. Senkou Span B is the 52-period midpoint, also plotted 26 periods ahead. The space between Spans A and B forms the cloud. The Chikou Span is simply the current closing price plotted 26 periods back in time. The forward shift of the cloud and the backward shift of the Chikou are central to how the system is read.
Classic settings are Tenkan 9, Kijun 26, Senkou Span B 52, with both cloud spans displaced 26 periods forward and the Chikou Span displaced 26 periods back. Some traders adapt these for 24-hour or higher-timeframe markets, for example by doubling the values (roughly 20/60/120), but the original 9/26/52 remains the most widely used baseline. Any change alters every line, so it should be tested rather than assumed to be an improvement.
//@version=6
indicator("Ichimoku Cloud", overlay = true)
tenkanLen = input.int(9, "Tenkan")
kijunLen = input.int(26, "Kijun")
senkouBLen = input.int(52, "Senkou B")
disp = input.int(26, "Displacement")
midpoint(simple int len) => math.avg(ta.highest(high, len), ta.lowest(low, len))
tenkan = midpoint(tenkanLen)
kijun = midpoint(kijunLen)
senkouA = math.avg(tenkan, kijun)
senkouB = midpoint(senkouBLen)
plot(tenkan, "Tenkan-sen", color = color.blue)
plot(kijun, "Kijun-sen", color = color.red)
plot(close, "Chikou Span", color = color.green, offset = -disp)
spanA = plot(senkouA, "Senkou A", color = color.teal, offset = disp)
spanB = plot(senkouB, "Senkou B", color = color.orange, offset = disp)
fill(spanA, spanB, color = senkouA > senkouB ? color.new(color.teal, 80) : color.new(color.orange, 80), title = "Kumo")Pro tip: A common workflow is to use the cloud for context (which side of it price is on) and then look at the Tenkan/Kijun relationship and the Chikou for confirmation, rather than reading any one line alone. Confirming on closed bars and across more than one component can reduce reaction to noise, but it removes neither the indicator's lag nor the risk of loss. This is educational, not advice.
Educational only — not financial advice, not a recommendation to trade. No indicator is predictive; trading involves substantial risk of loss.