全職奶爸

Ichimoku Cloud: Five Lines, 9/26/52 Settings and TradingView Guide

Ichimoku Cloud: five plots, time alignment and TradingView settings

TRADINGVIEW · RANGE MIDPOINTS AND TREND CONTEXT

The Ichimoku Cloud is a five-line indicator built from high–low range midpoints and a shifted closing-price line. Read price against the cloud drawn at the same chart position. The cloud extending to the right contains calculations made from available prices, rather than future market prices.

TradingView’s built-in baseline uses 9, 26, 52, and 26. The first three numbers set calculation lengths. With the fourth input at 26, its leading spans move 25 bar intervals forward and its lagging span moves 25 intervals backward. Counting the calculation bar as position 1 puts the 26th position 25 intervals away.

The five Ichimoku lines and their formulas

Ichimoku Kinko Hyo is associated with Goichi Hosoda, whose method was published in 1969. The familiar cloud is the region between two of its lines. It is not an additional price series calculated by adding their values together.

For each range midpoint, find the highest high and lowest low over the chosen number of bars, including the current bar. Add those two extremes and divide by two. The calculation differs from averaging all the closing prices in that window.

PlotCalculationBaseline lengthTradingView plotting position
Conversion Line / Tenkan-sen(Highest High + Lowest Low) ÷ 29 barsCurrent calculation bar
Base Line / Kijun-sen(Highest High + Lowest Low) ÷ 226 barsCurrent calculation bar
Leading Span A / Senkou Span A(Conversion Line + Base Line) ÷ 2Uses the two lines above25 intervals forward with fourth input 26
Leading Span B / Senkou Span B(Highest High + Lowest Low) ÷ 252 bars25 intervals forward with fourth input 26
Lagging Span / Chikou SpanCurrent closing priceNo extra price average25 intervals backward with fourth input 26

Suppose a window’s highest high is 110 and its lowest low is 90. Its midpoint is 100. Closing prices of 100, 104, and 109 inside that range would average 104.33, yet the range midpoint remains 100. A midpoint can stay flat while closes move around inside the same extremes.

A flat midpoint does not even prove both extremes stayed unchanged. Imagine a three-bar range initially bounded by 110 and 90, then a new bar changes those bounds to 112 and 88. Both midpoints are 100. A flat Kijun line therefore describes an unchanged midpoint; inspect the highs and lows before explaining why it stayed flat.

The Donchian Channel guide explains rolling high–low boundaries and their midpoint. Ichimoku uses that midpoint idea at several lengths, then adds its leading and lagging plot positions. Matching a line’s color or period to a closing-price moving average does not make the calculations equivalent.

Separate calculation time from chart position

Two questions keep the cloud readable: which bar supplied the information, and where did the platform draw the result? The Conversion Line and Base Line stay at their calculation bar. Leading Spans A and B move right, while Chikou moves left.

In the current TradingView built-in calculation, the offset is the fourth input minus one. At the baseline setting of 26, that is 25 chart-bar intervals. This is a plotting convention, separate from the 26-bar Base Line calculation. Other implementations can interpret a displacement label differently, so compare the actual plotting rule when matching platforms.

Let s denote the actual interval shift. The cloud underneath today’s bar uses Leading Span A and B values calculated s bars earlier. The new A and B values calculated today belong at a position s bars to the right. Both appear on the chart, but they answer different comparisons.

Cloud at current bar t = A calculated at t − s, B calculated at t − s
New cloud calculated at t is drawn at t + s
Current close at t is drawn as Chikou at t − s

Use the larger of the two cloud values as its upper boundary and the smaller as its lower boundary. A close above the upper boundary is above the cloud; a close below the lower boundary is below it. Between the boundaries, or exactly on one under this classification, price is inside or at the edge of the region.

The cloud’s color comes from the ordering of A and B at the displayed location. A above B is conventionally shaded green; B above A is shaded red. The current cloud and the newest projected cloud can have different colors because their values were calculated on different bars. State which location a color-based condition refers to.

A worked example that reverses the wrong comparison

Use six hypothetical bars and shorter lengths to make the calculation visible: Conversion 2, Base 3, Leading Span B 4, and a fourth input of 3. Under the same TradingView offset rule, that final setting produces a two-interval shift. These demonstration values are not a recommendation for an instrument.

The table uses complete windows. A dash marks a value for which this small reference sample has not yet supplied enough bars. It does not describe how every platform initializes a chart with additional history.

BarHighLowCloseConversionBaseNew ANew B
110298100————
2104100102101———
3106102104103102102.5—
4108104106105104104.5103
5120106108112111111.5110
6130104108117117117116

At bar 4, the two-bar high and low are 108 and 102, giving Conversion 105. The three-bar extremes are 108 and 100, giving Base 104. Leading Span A is their average, 104.5. The four-bar extremes are 108 and 98, giving Leading Span B 103.

Those A and B values move two intervals right and form the cloud at bar 6. The close at bar 6 is 108, which is above both 104.5 and 103. Under the declared price-versus-cloud classification, it is above the current cloud.

Use the cloud at the current price coordinateHypothetical bar 6 closes at 108. The current cloud uses bar 4 calculations, A 104.5 and B 103, so price is above it. Newly calculated A 117 and B 116 belong at bar 8; comparing them with bar 6 mixes coordinates.Use the cloud at the current price coordinateHYPOTHETICAL · Calculation lengths 2 / 3 / 4 · Shift 2BAR 6: Close 108 · Current cloud 104.5 / 103108 is above the current upper boundary of 104.5.BAR 8: Newly projected cloud 117 / 116These values belong two intervals to the right of bar 6.Comparing close 108 with that projected region mixes coordinates.

The new values calculated at bar 6 are A = 117 and B = 116. They belong at bar 8. Comparing the same close of 108 against those new values would call it below the cloud, reversing the interpretation by mixing chart positions. No future candle was needed to calculate that projected region, but it is still not the cloud located under bar 6.

Also notice that Conversion and Base both equal 117 at bar 6. Price being above the current cloud does not automatically establish a separate Conversion-above-Base condition. Keep each condition explicit when describing a multi-part setup.

Chikou can display information later than its timestamp

At bar 6, the closing price of 108 is also plotted backward at bar 4 as Chikou. That value became known at bar 6. A chart viewed afterward can show it sitting over bar 4, but a decision made at bar 4 could not yet have used bar 6’s closing price.

Drawing position does not set availabilityHypothetical two-interval shift: values calculated at bar 4 form the cloud at bar 6; values calculated at bar 6 form the cloud at bar 8. The close of 108 at bar 6 is drawn as Chikou at bar 4 but became known only at bar 6.Drawing position does not set availabilityHYPOTHETICAL · Calculation time → Drawing positionCalculated at bar 4 → Cloud drawn at bar 6A 104.5 / B 103 are available from bar 4.Calculated at bar 6 → Cloud drawn at bar 8A 117 / B 116 are available from bar 6.Close 108 at bar 6 → Chikou drawn at bar 4That value became known at bar 6, rather than bar 4.A shifted plot does not move its information to an earlier decision.

A valid current-time comparison can ask whether today’s close, represented by the latest Chikou endpoint, clears the past price at that endpoint’s position. That uses information available today. The look-ahead error occurs when a backtest assigns that later-known Chikou value to an earlier decision simply because the line is drawn there.

Define what “above past price” means. In the example, 108 is above bar 4’s close of 106, but it only equals bar 4’s high of 108. A filter requiring clearance above the entire old candle would not pass a strict greater-than test. A comparison with the old close would pass. Neither description should be substituted silently for the other.

If a method compares Chikou with an old cloud, the cloud must also be selected at that old chart coordinate. Record the data indices and the time at which each input became available. A visually clear gap between lines is not a substitute for a reproducible comparison.

Set up the built-in Ichimoku Cloud in TradingView

Choose your symbol, exchange, ordinary candle type, session, and chart interval. Open Indicators, metrics, and strategies, search for Ichimoku Cloud, and select TradingView’s built-in indicator. Community publications with similar names can add different signals, offsets, or calculation rules.

Open the settings gear beside the indicator’s name. For the built-in baseline, enter Conversion Line Length 9, Base Line Length 26, Leading Span B Length 52, and Lagging Span 26. The last field controls the backward close plot and both forward leading plots through the same offset variable.

The selected built-in uses chart bars. Change the interval with the chart’s interval control when comparing a five-minute and fifteen-minute view. A nine-bar calculation on those charts covers different observations. Keep the session fixed as well: including overnight bars can change the high–low windows that produce the midpoints.

In Style, identify Conversion Line, Base Line, Lagging Span, Leading Span A, and Leading Span B by name. Show or hide them individually and adjust their line colors and widths. The optional Kumo Cloud Upper Line and Lower Line trace the larger and smaller leading values; they do not introduce another independent source of price information.

Ichimoku Style controls listing Conversion Line, Base Line, Lagging Span, Leading Span A and Leading Span B, with optional Kumo boundary lines
Style separates the five core plots and the optional cloud boundary lines. Use the names to identify them, since a template can change their colors. Open the image for the full interface.

If you need to compare an implementation’s offsets, open Pine Editor, use the script-name menu, choose Create new → Built-in…, and select Ichimoku cloud. The leading plot offsets use the fourth input minus one; the lagging close uses the opposite offset. TradingView’s built-in source-code instructions explain that workflow.

The TradingView indicators guide covers finding a tool, recording its inputs, and checking signals. When two charts disagree, compare the actual source and plotting convention alongside the symbol, feed, sessions, input lengths, and available history.

Define a signal separately from a continuing condition

A bullish Conversion–Base crossover is an event: Conversion was at or below Base on the prior evaluated bar and is above it on the current evaluated bar. “Conversion is above Base” is a state that can continue for many bars. Count a new crossover once, according to the exact event rule.

A price breakout similarly compares the close with the cloud at each bar’s own coordinate. Because cloud boundaries can move between bars, define both the previous and current comparison. A close already above the cloud is not a fresh breakout on every subsequent bar.

Extend the worked example with a seventh bar whose high is 110, low is 106, and close is 108. The close is unchanged from bar 6. The cloud at bar 7 now uses bar 5’s A = 111.5 and B = 110, so 108 is below the current cloud. The prior bar was above its cloud even though both closes equal 108. The relationship changed because the displayed boundaries moved. A cloud-crossing event therefore needs comparisons with both bars’ boundaries, rather than a rule that assumes only price can move.

A multi-condition filter might require price above the current cloud, Conversion above Base, and the latest Chikou endpoint above a specified past-price reference. The three conditions can be true together without all three having crossed on the same bar. Record whether the method requires continuing agreement, a new event, or a sequence with a time limit.

Evaluate a closed-bar method after the selected bar closes. Developing highs, lows, and the latest close can change the current Conversion, Base, projected cloud, and Chikou value. The projected cloud is not automatically fixed just because it appears ahead of price. Historical data revisions and a changed chart setup can also alter later comparisons.

The built-in code draws the lines and cloud; it does not create a universal set of buy and sell arrows or place orders. If a separate script adds arrows, identify its entry, invalidation, confirmation, and exit rules. Its marker’s drawing position and the earliest executable trade time still need to agree.

Cloud thickness and a flat line describe geometry

Cloud thickness is the absolute difference between the two leading values at the chosen chart position. A thick cloud covers a wider price region, while a thin cloud covers a narrower one. This is not ATR, a probability of support holding, or a guarantee that a breakout through the region will continue.

A cloud twist occurs when the ordering of the leading spans changes. A twist in the newest projected cloud becomes known from the calculation that produced it, even though it is displayed to the right. It does not reveal the future price that will eventually occupy that chart position.

Range-bound price can repeatedly cross lines or move in and out of the cloud. A longer calculation can change that display, but it does not turn a choppy market into a directional one. Compare complete sequences of failed and surviving signals rather than choosing the cleanest historical turn.

Use another indicator for a defined question

Supertrend condenses an ATR-based directional calculation into one active band. Ichimoku displays several range-midpoint relationships and shifted plots. Choosing between them depends on the information your trading rule needs, rather than the number of lines on the screen.

RSI compares smoothed upward and downward closing-price changes. It answers a different arithmetic question from a high–low midpoint. However, both still derive from market price, so agreement between them does not by itself establish independent evidence or a higher win rate.

For a five-minute method, keep the instrument, session, inputs, entry, and exit fixed before comparing alternatives. For swing trading, include overnight gaps and the period for which a position remains open. A setting that describes one sample neatly has not been shown to work on another merely because the same numbers can be entered.

Turn chart levels into a risk plan

A cloud boundary or Base Line can be a reference for an exit rule, but neither chooses the amount of money available to risk. Measure the distance from the planned entry to the chosen invalidation price. If you use a buffer, tick rounding, or an order placed outside the region, include those choices in that distance.

A stop order can trigger before a candle closes, while an exit based on a confirmed line cross waits for its evaluation time. Specify which mechanism applies. Gaps, liquidity, costs, and order handling can make the realized result differ from the chart distance used in the plan.

Multiply price distance by the instrument’s money value per unit and quantity, then include realistic transaction and execution allowances. The position sizing calculator guide explains those units. Reduce quantity or skip the setup when its defined risk does not fit the budget; changing the plotted cloud does not increase that budget.

Keep a development sample separate from an untouched evaluation sample. Record the input values, actual shift, decision time, price reference, entry, exit, and costs. Include losing signals and sideways periods. For a prop firm evaluation, apply the current account’s position limits, drawdown method, and permitted trading times to the same risk plan before choosing a plan.

Compare HDP discounts

Lucid 30% · Tradeify 30% · TPT 50%.

See current offers ↗

Eligible partner plans only.

Ichimoku Cloud FAQ

What is the Ichimoku Cloud?

It is a chart overlay with Conversion, Base, Leading Span A, Leading Span B, and Lagging Span plots. The region between the two leading spans forms the cloud, while their chart positions differ from their calculation times.

What are the five Ichimoku lines?

They are Tenkan-sen or Conversion Line, Kijun-sen or Base Line, Senkou Span A, Senkou Span B, and Chikou Span or Lagging Span. The cloud is the region between A and B, rather than their numerical sum.

What do 9, 26, 52 and 26 mean in TradingView?

The first three inputs set Conversion Line Length, Base Line Length, and Leading Span B Length. The fourth, labeled Lagging Span in the verified built-in, controls both forward and backward plot offsets.

Why does an input of 26 move the plots 25 intervals?

The TradingView built-in applies the fourth input minus one to the leading plots and the opposite offset to Chikou. Counting the calculation bar as position 1 places the 26th position 25 chart-bar intervals away.

Does the cloud ahead of price predict future prices?

No. New leading values use available high–low calculations and are drawn to the right. They contain no future closing price and do not guarantee where price will trade when that chart position arrives.

Which cloud should I compare with the current price?

Use the cloud drawn at the current bar’s chart coordinate. With an actual shift of s intervals, those leading values were calculated s bars earlier. The new leading values calculated now belong at a future chart coordinate.

What does Chikou Span show?

It shows a closing price shifted backward. The latest close becomes available at its calculation time, even though its Chikou point is drawn earlier. Define whether its past-price comparison uses an old close or an entire candle.

Does a flat Kijun mean the highs and lows stayed unchanged?

Not necessarily. A range of 90–110 and a later range of 88–112 both have midpoint 100. The line can remain flat while both extremes change, or while closes move within unchanged extremes.

Is a Tenkan–Kijun cross an automatic entry?

A cross is one defined event. A trading rule also needs its price-versus-cloud context, confirmation time, entry price, invalidation, sizing, and exit. A persistent Conversion-above-Base state is not a fresh crossover on every bar.

Does a thicker cloud guarantee stronger support?

No. Thickness measures the distance between the leading spans at that position. It describes a wider region, without assigning a probability that support holds or that a breakout succeeds.

What are the best Ichimoku settings for a five-minute chart?

There is no universally best configuration. Record a baseline such as 9, 26, 52, and 26, verify its actual plotting shift, and compare alternatives under unchanged trading rules, sessions, costs, and a separate evaluation sample.

Does the built-in Ichimoku draw buy and sell arrows?

The verified built-in plots lines and a cloud. Arrows from another script follow that script’s own rules. Identify its source, confirmation, and order assumptions before treating a marker as an executable signal.

Does an Ichimoku strategy have a fixed success rate?

No universal success rate applies to the indicator. Results depend on the complete entry and exit rules, instrument, sample, costs, sizing, and execution. A selected chart does not establish the performance of another method.

How can I avoid look-ahead bias with Ichimoku?

Record when every value became known as well as where it is drawn. Align current price with the current cloud and keep a later-known Chikou value out of an earlier decision. Use the platform’s actual offsets consistently in plots and tests.