In simple terms
We simulate a trade after an H4 closes outside its Kumo following a close inside or on the edge of the previous bar’s own Kumo. At base costs the filtered rule returned +4.02% in 2022–2023 and −3.65% in 2024–2025, compared with +4.54% and −4.74% for the plain breakout.
Contents
What the Ichimoku cloud shows
Kumo is the area between Senkou Span A and B. In this study its displayed edges define the price zone. Tenkan and Kijun are midranges of recent highs and lows and provide a separate direction check.
Data and test windows
We use paired Bid/Ask ticks from 52 monthly HistData files. We add five hours to the fixed UTC−5 source clock and form UTC H4 Bid candles, skipping empty intervals. October–December 2021 warms up the indicators. The 2022–2023 and 2024–2025 windows start flat with 10,000 USD each.
How 9/26/52 is calculated
The midrange is the midpoint between the highest Bid high and lowest Bid low. Tenkan uses 9 bars and Kijun uses 26. Raw Span A averages those two lines, and raw Span B uses a 52-bar midrange. Each lookback includes its completed calculation bar.
Mₙ(t) = [max(Hₙ) + min(Lₙ)] / 2 · T = M₉ · K = M₂₆
A_raw = (T + K) / 2 · B_raw = M₅₂
Which cloud belongs to the signal
The cloud plotted on bar t uses spans calculated at t−26. The previous close uses the edges on its own bar, calculated at t−27 relative to the signal. The displacement counts 26 observed H4 bars. This timing is essential to reproduce the signals.
A(t) = A_raw(t−26) · B(t) = B_raw(t−26)
U(t) = max[A(t), B(t)] · L(t) = min[A(t), B(t)]
From inside Kumo to a breakout
The previous Bid close must be inside or on its Kumo edges. The completed signal bar must close strictly above its own upper edge for a long or below its own lower edge for a short. The upper edge is whichever plotted span is higher.
L(t−1) ≤ C(t−1) ≤ U(t−1)
Long: C(t) > U(t) · Short: C(t) < L(t)
Tenkan/Kijun filter and entry
For a long, the filter requires Tenkan above Kijun at the signal close. A short requires the reverse. An equal value blocks entry. The plain variant takes the price signal on its own. Both use the first available Ask for a buy and Bid for a sell, with one open position and no reuse of an exit quote.
Fixed stop on the correct quote
The stop is 2 × ATR(14) from the simulated entry, using Wilder ATR from the signal bar. The first Bid at or below the long stop or Ask at or above the short stop triggers it. Slippage applies to the observed exit reference, including after a gap.
ST = P_E − side × 2 × ATR₁₄(t) · side ∈ {+1, −1}
Exit after losing the breakout
A long exits after a completed Bid close at or below the upper cloud edge. A short exits at or above the lower edge. That includes a close across the whole cloud. Use the next available Bid for a long exit and Ask for a short exit. The scheduled exit takes priority on its execution quote. Liquidate at the first quote at or after the period boundary if needed.
Risk budget and USD accounting
We round the position down to whole USD units and cap it at account equity. The size targets 0.5% gross price risk at the stop, before gaps and costs. Price P&L is in JPY. To convert to USD, the model uses Ask for gains and Bid for losses at exit. Commission and rollover debits convert at Bid.
Q_USD = floor[min(Equity, 0.005 × Equity × Bid_E / D_JPY)]
Observed and modeled costs
The spread comes from paired quotes. Base charges are 0.35 pip commission and 0.10 pip slippage per side, plus 0.40 pip per weighted rollover day in either direction. One pip equals 0.01 JPY per USD. Rollover is modeled at 17:00 New York on weekdays, with Wednesday counted three times and no holiday adjustment.
Results and drawdowns
At base costs the filter reduced H4-close drawdown in both windows. It lagged the plain breakout on return in 2022–2023 and lost less in 2024–2025. The tables show the count by direction before trading constraints and the realized trade count, return and drawdown.
| Case | Eligible breakouts | Retained by filter | Rejected by filter |
|---|---|---|---|
| 2022–2023 · Long | 57 | 25 | 32 |
| 2022–2023 · Short | 35 | 21 | 14 |
| 2024–2025 · Long | 72 | 38 | 34 |
| 2024–2025 · Short | 52 | 35 | 17 |
| Case | Net return | Maximum H4 drawdown | Completed trades | Long | Short | Blocked by position |
|---|---|---|---|---|---|---|
| 2022–2023 · Base costs · Tenkan/Kijun filter | +4.02% | 4.98% | 46 | 25 | 21 | 0 |
| 2022–2023 · Base costs · Plain breakout | +4.54% | 6.67% | 92 | 57 | 35 | 0 |
| 2022–2023 · Higher costs · Tenkan/Kijun filter | +3.23% | 5.11% | 46 | 25 | 21 | 0 |
| 2022–2023 · Higher costs · Plain breakout | +3.18% | 7.16% | 92 | 57 | 35 | 0 |
| 2024–2025 · Base costs · Tenkan/Kijun filter | −3.65% | 8.73% | 73 | 38 | 35 | 0 |
| 2024–2025 · Base costs · Plain breakout | −4.74% | 10.88% | 124 | 72 | 52 | 0 |
| 2024–2025 · Higher costs · Tenkan/Kijun filter | −3.53% | 8.09% | 73 | 38 | 35 | 0 |
| 2024–2025 · Higher costs · Plain breakout | −5.16% | 11.01% | 124 | 72 | 52 | 0 |
Higher costs and the stop path
The stress case doubles commission, slippage and modeled rollover. In the later filtered run it returned −3.53%. Holding base quantities and quote references fixed gives −4.65% with the higher charges. Higher entry slippage shifts the stop threshold, so a full rerun can use different exit quotes.
| Case | Midpoint movement | Observed spread | Commission | Slippage | Modeled rollover | Net P&L |
|---|---|---|---|---|---|---|
| 2022–2023 · Base costs · Tenkan/Kijun filter | +498.14 | 17.31 | 18.96 | 5.42 | 54.54 | +401.91 |
| 2022–2023 · Higher costs · Tenkan/Kijun filter | +497.04 | 17.18 | 37.78 | 10.79 | 108.68 | +322.62 |
| 2024–2025 · Base costs · Tenkan/Kijun filter | −228.51 | 36.49 | 25.60 | 7.31 | 67.24 | −365.15 |
| 2024–2025 · Higher costs · Tenkan/Kijun filter | −116.47 | 37.01 | 51.02 | 14.57 | 133.54 | −352.61 |
Long example and the cloud clock
In the long example, P is the previous close in Kumo and S is the breakout close. E marks modeled entry and X the exit after a close back toward Kumo. The evidence below the chart gives the UTC close of the bar that supplied S’s two plotted spans, 26 H4 earlier.
- t−26 · Span calculation bar · UTC
- P · UTC
- S · UTC
- E · UTC
- X · UTC
- A(t) · JPY/USD
- 142.66825
- B(t) · JPY/USD
- 143.17550
- Tenkan · JPY/USD
- 142.50850
- Kijun · JPY/USD
- 141.98750
- ST · JPY/USD
- 142.60807
- E · JPY/USD
- 143.606000
- X · JPY/USD
- 142.994000
- Close triggering the Kumo exit · UTC
Short example and the weekend gap
The short signaled on 1 October 2025. In the base case, the first Ask above the stop came at the Sunday reopening. In the stress case a stop 0.001 JPY lower triggered on Friday. E and X on this chart are the base fills. This one trade explains most of the apparent improvement in the higher-cost filtered run.
- t−26 · Span calculation bar · UTC
- P · UTC
- S · UTC
- E · UTC
- X · UTC
- A(t) · JPY/USD
- 148.13300
- B(t) · JPY/USD
- 147.19800
- Tenkan · JPY/USD
- 147.87300
- Kijun · JPY/USD
- 148.42800
- ST · JPY/USD
- 147.82235
- E · JPY/USD
- 147.075000
- X · JPY/USD
- 149.493000
- X · Higher costs · UTC
- ST · Higher costs · JPY/USD
- 147.821347
Data and reproducibility checks
A separate calculation rebuilt the shifted cloud and checked executions and USD balances. We sorted the affected archive rows by recorded time, preserving order on ties. Removing all quotes in the five affected UTC hours changed net return by less than 0.002 percentage points and preserved trade counts. The JSON and CSV give the protocol and trade evidence.
What the comparison shows
The filter cut trade counts and drawdowns. The two periods gave different relative returns, and both variants lost money in the later one. The archived prices and modeled rollover describe this test. Execution and financing at a broker can differ.
Questions and answers
Which Senkou values should I compare with the current price?
Use the two spans plotted on that bar. They were calculated 26 observed H4 earlier.
Does a close on the edge count as a breakout?
It counts as inside for the previous bar. A signal must close strictly outside its own cloud.
Do Tenkan and Kijun have to cross?
The filtered test checks their order at the signal close. The order can have been in place earlier.
Which quote triggers a short stop?
Ask. A short closes with a buy. The next archived quote can gap above the stop.
What makes the high-cost run differ from a simple fee deduction?
Entry slippage moves the stop measured from the fill. That can change which quote triggers the exit.
Are the rollover amounts actual broker swaps?
They are modeled debits, applied to both directions. The archived quotes provide the spread.
Sources and reproducibility
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.
Risk disclosure
Historical simulation for education. Currency trades can lose money. Actual spreads, financing and fills can differ.