Independent market intelligence
Research over noise · Risk before return
Forex · Strategy research

USD/JPY H4 Ichimoku cloud breakout strategy with 9/26/52

Does Tenkan/Kijun alignment help when USD/JPY breaks out of the Ichimoku cloud? We use two H4 periods, the cloud visible at the signal, and archived Bid and Ask for both trade directions.

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
01

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.

02

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.

03

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₅₂

04

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)]

05

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)

06

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.

07

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}

08

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.

09

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)]

10

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.

11

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.

Breakouts before the position limit
CaseEligible breakoutsRetained by filterRejected by filter
2022–2023 · Long572532
2022–2023 · Short352114
2024–2025 · Long723834
2024–2025 · Short523517
Returns by period and costs
CaseNet returnMaximum H4 drawdownCompleted tradesLongShortBlocked by position
2022–2023 · Base costs · Tenkan/Kijun filter+4.02%4.98%4625210
2022–2023 · Base costs · Plain breakout+4.54%6.67%9257350
2022–2023 · Higher costs · Tenkan/Kijun filter+3.23%5.11%4625210
2022–2023 · Higher costs · Plain breakout+3.18%7.16%9257350
2024–2025 · Base costs · Tenkan/Kijun filter−3.65%8.73%7338350
2024–2025 · Base costs · Plain breakout−4.74%10.88%12472520
2024–2025 · Higher costs · Tenkan/Kijun filter−3.53%8.09%7338350
2024–2025 · Higher costs · Plain breakout−5.16%11.01%12472520
Tenkan/Kijun filterPlain breakout
USD account value at base costs for the filtered and plain variants. The chart samples every sixth H4 mark, with initial and final values. Drawdown uses all H4 marks.
USD account value at base costs for the filtered and plain variants. The chart samples every sixth H4 mark, with initial and final values. Drawdown uses all H4 marks.
12

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.

Cost breakdown in USD
CaseMidpoint movementObserved spreadCommissionSlippageModeled rolloverNet P&L
2022–2023 · Base costs · Tenkan/Kijun filter+498.1417.3118.965.4254.54+401.91
2022–2023 · Higher costs · Tenkan/Kijun filter+497.0417.1837.7810.79108.68+322.62
2024–2025 · Base costs · Tenkan/Kijun filter−228.5136.4925.607.3167.24−365.15
2024–2025 · Higher costs · Tenkan/Kijun filter−116.4737.0151.0214.57133.54−352.61
13

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.

PPrevious close in KumoSBreakout closeEEntryXExitSenkou ASenkou BST · Initial stop
Long trade at base costs. The blue and purple lines are the plotted Senkou A and B. P and S mark completed closes, E and X simulated fills, and ST the initial stop. Prices are JPY per USD.
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
Long trade at base costs. The blue and purple lines are the plotted Senkou A and B. P and S mark completed closes, E and X simulated fills, and ST the initial stop. Prices are JPY per USD.
14

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.

PPrevious close in KumoSBreakout closeEEntryXExitSenkou ASenkou BST · Initial stop
Short trade at base costs. The cloud uses the shifted spans on each bar. E is the modeled Bid entry and X the modeled Ask stop exit, including slippage. ST is the initial stop, prices are JPY per USD.
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
Short trade at base costs. The cloud uses the shifted spans on each bar. E is the modeled Bid entry and X the modeled Ask stop exit, including slippage. ST is the initial stop, prices are JPY per USD.
15

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.

16

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

Created by the MyProfitFactor editorial team.

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.