Ichimoku: close above cloud plus line cross-up
Ichimoku: buy when the price closes above the cloud and the conversion line crosses above the base line.
Survivorship mirage
It clears the bar on today's winners, the stocks everyone wishes they had bought, but not on the laggards, which is where hindsight can't help.
- It clears the bar on today's winners but not on the laggards: the winners' own rise did the work.
42 large US stocks, 15 years
Before costs +0.014R
By trade and by day, sized to a first try
What the numbers say
On the 22 laggards the idea averaged −0.076R per trade after costs over 848 trades, against 0.214R on today's winners. Before costs the laggards were near flat at 0.013557782943515081R. Results were negative in bull, flat and bear markets, so the winners' own rise accounts for the gap.
How it was tested
Buy at the close when the close is above the Ichimoku cloud and the conversion line crosses above the base line, then exit by stop, target, trend loss, or time.
- Side
- Long
- Its own exit
- Exit at the first close after entry where Tenkan closes back below Kijun, or close falls below the bottom of the cloud (min of Span A and Span B at that day)., checked at each close
- Time limit
- Exit at the close after 30 trading days, unless the stop, the target or its own exit comes first
- Bar to clear
- t > 2.01, by trade and by day, sized to a first try (one idea, tested once)
- Prices
- 15 years of daily bars through 2026-11-20; judged 2026-11-22
- Standard Ichimoku settings 9/26/52 used
- Cloud is the standard one plotted at day t, using spans computed 26 bars earlier, so there is no look-ahead
- 'Above the cloud' means close above the higher of Span A and Span B
- The cross must occur on the same day the close is above the cloud
- Stop at 2 x ATR(14) and target at 4 x ATR(14) were chosen since the idea names none
- Exit rule (Tenkan back below Kijun or close below cloud) was chosen as a conventional Ichimoku trend-loss exit; the idea names none
The evidence
The laggards decide: 22 large stocks that lagged or fell, where hindsight can't flatter a rule. Today's winners sit beside them to show what survivorship would add.
| Market | Trades | Per trade | t, by trade | t, by day | Random dates | Winners, per trade |
|---|---|---|---|---|---|---|
| Bull | 662 | −0.053R | −1.07 | −1.72 · 493d | −0.091R · beats 95% | +0.181R |
| Flat | 130 | −0.192R | −1.93 | −1.44 · 104d | −0.101R · beats 15% | +0.410R |
| Bear | 56 | −0.069R | −0.44 | −0.57 · 38d | −0.050R · beats 45% | +0.191R |
| All | 848 | −0.076R | −0.090R | +0.214R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 12.4 bps) plus 0.045R for the fills a real order wouldn't get. “By day” groups trades opened the same day, so a rule that fires on the same dates for every stock counts as a few events. “Random dates” places the same plan on random days of the same stocks in the same kind of market, 20 times; the idea must beat 95% of those draws.
The scanner we wroteShow the codeHide
from decimal import Decimal
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class IchimokuCloudBreakoutTkCrossLong:
name = "ichimoku_cloud_breakout_tk_cross_long"
description = "Close above Ichimoku cloud with Tenkan crossing above Kijun; ATR stop/target; trend-loss exit."
def __init__(self, tenkan_n: int = 9, kijun_n: int = 26, senkou_b_n: int = 52,
shift: int = 26, atr_period: int = 14,
stop_mult: float = 2.0, target_mult: float = 4.0) -> None:
self._tn = tenkan_n
self._kn = kijun_n
self._sbn = senkou_b_n
self._shift = shift
self._atr_period = atr_period
self._stop_mult = stop_mult
self._target_mult = target_mult
def _mid(self, bars, idx, n):
if idx - n + 1 < 0:
return None
w = bars[idx - n + 1: idx + 1]
hh = max(b.high for b in w)
ll = min(b.low for b in w)
return (hh + ll) / Decimal("2")
def _cloud(self, bars, idx):
j = idx - self._shift
if j < 0:
return None
t = self._mid(bars, j, self._tn)
k = self._mid(bars, j, self._kn)
sb = self._mid(bars, j, self._sbn)
if t is None or k is None or sb is None:
return None
sa = (t + k) / Decimal("2")
return sa, sb
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
need = self._shift + self._sbn + 1
if len(bars) < max(need, self._atr_period + 2):
return None
idx = len(bars) - 1
t_now = self._mid(bars, idx, self._tn)
k_now = self._mid(bars, idx, self._kn)
t_prev = self._mid(bars, idx - 1, self._tn)
k_prev = self._mid(bars, idx - 1, self._kn)
if None in (t_now, k_now, t_prev, k_prev):
return None
if not (t_now > k_now and t_prev <= k_prev):
return None
cloud = self._cloud(bars, idx)
if cloud is None:
return None
top = max(cloud[0], cloud[1])
current = bars[-1]
if current.close <= top:
return None
atr_val = atr(bars, self._atr_period)
if atr_val is None or atr_val <= 0:
return None
a = Decimal(str(atr_val))
entry = current.close
stop = entry - Decimal(str(self._stop_mult)) * a
target = entry + Decimal(str(self._target_mult)) * a
risk = entry - stop
if risk <= 0:
return None
rr = (target - entry) / risk
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=50,
thesis="Tenkan crossed above Kijun with close above the Ichimoku cloud.",
)
def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal,
side: str, bars_held: int) -> bool:
idx = len(bars) - 1
if idx < 0:
return False
t = self._mid(bars, idx, self._tn)
k = self._mid(bars, idx, self._kn)
if t is not None and k is not None and t < k:
return True
cloud = self._cloud(bars, idx)
if cloud is not None:
bottom = min(cloud[0], cloud[1])
if bars[-1].close < bottom:
return True
return False
Hypothetical results from our own backtest of the rule as restated, on 42 large US stocks over 15 years. Past performance, real or simulated, does not predict future results. Research and education only; not investment advice.
Describe it in plain words and get the same honest test in about a minute.