What Is Ichimoku cloud?
The Ichimoku cloud is the area between two forward-plotted lines used to judge trend direction. In the conventional daily settings, first take the midpoint of the highest high and lowest low over each of 9, 26 and 52 sessions. The first leading span averages the 9- and 26-session midpoints. The second is the 52-session midpoint. Both are drawn 26 sessions ahead.
If the spans plotted at today’s date are 96 and 100, a close at 103 is above the cloud and passes a common bullish trend filter. A close at 98 is inside it. To reproduce the chart in a backtest, compare today’s close with spans calculated 26 sessions earlier. Reversing that alignment can introduce look-ahead bias.
For the formulas and plot offsets, see TradingView’s Ichimoku Cloud documentation.