Ichimoku cloud strategy
On ES futures from January 2016 to July 2026, the Ichimoku cloud strategy made $28,920 after costs and made money in 6 of 11 years.
TrendSwingDaily barsBacktested Nov 6, 2026
Ichimoku cloud backtest, the result
Contract
E-mini S&P 500
-
+$28.9K
Net after costs
After $3,368 in fees and slippage
-
6 of 11
Years that made money
January 2016 to July 2026
-
−$69K
Largest drawdown
Peak to trough, 1 contract
-
$221
Average trade
131 trades
Net after costs by month, January 2016 to July 2026.
Ichimoku cloud rules
Be long above the cloud with the conversion line over the base line, short below it with the line under, and flat inside it.
A drawing of the rules on a made-up day, not a result.
- The conversion line is the midpoint of the last 9 days' high and low, and the base line of the last 26.
- The cloud's edges are the mean of those two lines and the midpoint of the last 52 days, each drawn 26 days ahead.
- The strategy is long when a day closes above the cloud with the conversion line over the base line, and short when it closes below the cloud with the line under it.
- On any other close it is flat.
- From
- Goichi Hosoda, Ichimoku Kinko Hyo
- Decides on
- Daily bars
- Holds
- Overnight and across days
- Parameters
- slow 52, ahead 26
Results by year
It made money in 6 of 11 years on ES. Its best year was 2020, +$39,137, and its worst 2022, −$41,291.
| Year | Net | Trades | Win rate | Drawdown | Buy and hold |
|---|---|---|---|---|---|
| 2016 | −$2,059 | 6 | 33% | −$7,641 | +$11,497 |
| 2017 | +$14,382 | 9 | 56% | −$5,360 | +$21,936 |
| 2018 | −$9,629 | 16 | 38% | −$30,663 | −$8,589 |
| 2019 | −$1,353 | 12 | 58% | −$21,502 | +$35,436 |
| 2020 | +$39,137 | 11 | 64% | −$33,703 | +$27,761 |
| 2021 | +$8,201 | 14 | 50% | −$23,496 | +$51,361 |
| 2022 | −$41,291 | 15 | 33% | −$44,900 | −$45,939 |
| 2023 | +$13,451 | 10 | 50% | −$21,756 | +$38,435 |
| 2024 | +$7,766 | 16 | 31% | −$31,244 | +$42,947 |
| 2025 | +$16,224 | 13 | 46% | −$41,391 | +$37,010 |
| 2026, Jan to Jul | −$15,907 | 9 | 33% | −$33,936 | +$24,355 |
Ichimoku cloud backtest results
On ES it made $32,288 before costs. Fees and slippage took $3,368 of that.
- Net = before costs − fees − slippage
- ES: $32,288 − $468 − $2,900 = $28,920
The interval holds zero: this test cannot tell the average trade from no edge.
Ichimoku cloud code and Pine Script
The strategy as the backtest ran it, and the Pine Script our compiler wrote from it for TradingView.
1from atlantive import BUY, SELL, Bars, RollingMinMax, Strategy2 3 4class IchimokuCloud(Strategy):5 """Ichimoku cloud on daily bars: long above the cloud with the conversion line over the base line.6 7 A day is the CME trading day, 18:00 to 17:00 New York (the run's daily bars). The conversion line8 is the midpoint of the last 9 days' high and low, the base line of the last 26. The first edge of9 the cloud is their mean and the second the midpoint of the last 52 days, each drawn 26 days ahead,10 so today's cloud is what they were 26 days ago. The strategy is long when the close is above the11 cloud and the conversion line above the base line, short when the close is below it and the line12 below, and flat otherwise. Each decision is taken at a daily close and fills at the next session's13 first one-second bar, at the 18:00 New York reopen. The two delay lines are 26 fields each because14 a handler holds no list.15 """16 17 data = "bars"18 19 class Params:20 slow: int = 5221 ahead: int = 2622 clip: int = 123 24 class State:25 bars: Bars(interval_ns=86_400_000_000_000)26 h9: RollingMinMax(window=9)27 l9: RollingMinMax(window=9)28 h26: RollingMinMax(window=26)29 l26: RollingMinMax(window=26)30 h52: RollingMinMax(window=52)31 l52: RollingMinMax(window=52)32 seen: int33 a01: float34 a02: float35 a03: float36 a04: float37 a05: float38 a06: float39 a07: float40 a08: float41 a09: float42 a10: float43 a11: float44 a12: float45 a13: float46 a14: float47 a15: float48 a16: float49 a17: float50 a18: float51 a19: float52 a20: float53 a21: float54 a22: float55 a23: float56 a24: float57 a25: float58 a26: float59 b01: float60 b02: float61 b03: float62 b04: float63 b05: float64 b06: float65 b07: float66 b08: float67 b09: float68 b10: float69 b11: float70 b12: float71 b13: float72 b14: float73 b15: float74 b16: float75 b17: float76 b18: float77 b19: float78 b20: float79 b21: float80 b22: float81 b23: float82 b24: float83 b25: float84 b26: float85 86 def on_event(self, view, ev, orders):87 if not self.bars.update(ev):88 return89 high = float(self.bars.prev_high)90 low = float(self.bars.prev_low)91 close = float(self.bars.prev_close)92 self.h9.update(high)93 self.l9.update(low)94 self.h26.update(high)95 self.l26.update(low)96 self.h52.update(high)97 self.l52.update(low)98 self.seen += 199 conversion = (self.h9.max() + self.l9.min()) / 2.0100 base = (self.h26.max() + self.l26.min()) / 2.0101 # Today's cloud is the oldest of the 26 days held: read it, then move every day one along.102 edge_a = self.a26103 edge_b = self.b26104 self.a26 = self.a25105 self.a25 = self.a24106 self.a24 = self.a23107 self.a23 = self.a22108 self.a22 = self.a21109 self.a21 = self.a20110 self.a20 = self.a19111 self.a19 = self.a18112 self.a18 = self.a17113 self.a17 = self.a16114 self.a16 = self.a15115 self.a15 = self.a14116 self.a14 = self.a13117 self.a13 = self.a12118 self.a12 = self.a11119 self.a11 = self.a10120 self.a10 = self.a09121 self.a09 = self.a08122 self.a08 = self.a07123 self.a07 = self.a06124 self.a06 = self.a05125 self.a05 = self.a04126 self.a04 = self.a03127 self.a03 = self.a02128 self.a02 = self.a01129 self.a01 = (conversion + base) / 2.0130 self.b26 = self.b25131 self.b25 = self.b24132 self.b24 = self.b23133 self.b23 = self.b22134 self.b22 = self.b21135 self.b21 = self.b20136 self.b20 = self.b19137 self.b19 = self.b18138 self.b18 = self.b17139 self.b17 = self.b16140 self.b16 = self.b15141 self.b15 = self.b14142 self.b14 = self.b13143 self.b13 = self.b12144 self.b12 = self.b11145 self.b11 = self.b10146 self.b10 = self.b09147 self.b09 = self.b08148 self.b08 = self.b07149 self.b07 = self.b06150 self.b06 = self.b05151 self.b05 = self.b04152 self.b04 = self.b03153 self.b03 = self.b02154 self.b02 = self.b01155 self.b01 = (self.h52.max() + self.l52.min()) / 2.0156 if self.seen <= self.p.slow + self.p.ahead:157 return158 top = max(edge_a, edge_b)159 bottom = min(edge_a, edge_b)160 if close > top and conversion > base:161 if view.position < 0:162 orders.ioc(side=BUY, qty=abs(view.position) + self.p.clip)163 elif view.position == 0:164 orders.ioc(side=BUY, qty=self.p.clip)165 elif close < bottom and conversion < base:166 if view.position > 0:167 orders.ioc(side=SELL, qty=abs(view.position) + self.p.clip)168 elif view.position == 0:169 orders.ioc(side=SELL, qty=self.p.clip)170 elif view.position > 0:171 orders.ioc(side=SELL, qty=abs(view.position))172 elif view.position < 0:173 orders.ioc(side=BUY, qty=abs(view.position)) 1//@version=62// IchimokuCloud, exported from Atlantive.3// Chart simulation: decisions use completed bars; market orders fill at the next bar open.4// Native fills, fees, data gaps and session boundaries can differ. Re-test on the target symbol.5// Use standard time-based candles and the strategy's timeframe, not synthetic chart prices.6// Pine v6 trims old trade records at its order limit; the strategy keeps calculating.7// Margin is explicitly disabled to retain the native signal simulation's sizing.8strategy("IchimokuCloud", overlay=true, initial_capital=100000.0, commission_type=strategy.commission.cash_per_contract, commission_value=1.68, default_qty_type=strategy.fixed, default_qty_value=1, calc_on_every_tick=false, process_orders_on_close=false, slippage=0, margin_long=0, margin_short=0)9 10if timeframe.in_seconds() != 8640011 runtime.error("IchimokuCloud was exported for the 1 day timeframe; set the chart to 1D.")12 13slow = input.int(52, "slow", minval=-9007199254740991, maxval=9007199254740991)14ahead = input.int(26, "ahead", minval=-9007199254740991, maxval=9007199254740991)15clip = input.int(1, "clip", minval=-9007199254740991, maxval=9007199254740991)16 17_q_safe_int(x) =>18 if math.abs(x) > 900719925474099119 runtime.error("an integer left the exact chart range; this run cannot be compared faithfully")20 int(x)21_q_int(x) => _q_safe_int(x < 0 ? math.ceil(x) : math.floor(x))22_q_iadd(a, b) => _q_safe_int(a + b)23 24_q_high = _q_int(math.round(high * 1000000000.0))25_q_low = _q_int(math.round(low * 1000000000.0))26_q_close = _q_int(math.round(close * 1000000000.0))27 28var int seen = 029var float a01 = 0.030var float a02 = 0.031var float a03 = 0.032var float a04 = 0.033var float a05 = 0.034var float a06 = 0.035var float a07 = 0.036var float a08 = 0.037var float a09 = 0.038var float a10 = 0.039var float a11 = 0.040var float a12 = 0.041var float a13 = 0.042var float a14 = 0.043var float a15 = 0.044var float a16 = 0.045var float a17 = 0.046var float a18 = 0.047var float a19 = 0.048var float a20 = 0.049var float a21 = 0.050var float a22 = 0.051var float a23 = 0.052var float a24 = 0.053var float a25 = 0.054var float a26 = 0.055var float b01 = 0.056var float b02 = 0.057var float b03 = 0.058var float b04 = 0.059var float b05 = 0.060var float b06 = 0.061var float b07 = 0.062var float b08 = 0.063var float b09 = 0.064var float b10 = 0.065var float b11 = 0.066var float b12 = 0.067var float b13 = 0.068var float b14 = 0.069var float b15 = 0.070var float b16 = 0.071var float b17 = 0.072var float b18 = 0.073var float b19 = 0.074var float b20 = 0.075var float b21 = 0.076var float b22 = 0.077var float b23 = 0.078var float b24 = 0.079var float b25 = 0.080var float b26 = 0.081var _q_h9_buf = array.new_float(9, 0.0)82var int _q_h9_idx = 083var int _q_h9_count = 084var int _q_h9_skipped = 085var _q_h9_hiq = array.new_int(9, 0)86var int _q_h9_hih = 087var int _q_h9_hin = 088var _q_h9_loq = array.new_int(9, 0)89var int _q_h9_loh = 090var int _q_h9_lon = 091var _q_l9_buf = array.new_float(9, 0.0)92var int _q_l9_idx = 093var int _q_l9_count = 094var int _q_l9_skipped = 095var _q_l9_hiq = array.new_int(9, 0)96var int _q_l9_hih = 097var int _q_l9_hin = 098var _q_l9_loq = array.new_int(9, 0)99var int _q_l9_loh = 0100var int _q_l9_lon = 0101var _q_h26_buf = array.new_float(26, 0.0)102var int _q_h26_idx = 0103var int _q_h26_count = 0104var int _q_h26_skipped = 0105var _q_h26_hiq = array.new_int(26, 0)106var int _q_h26_hih = 0107var int _q_h26_hin = 0108var _q_h26_loq = array.new_int(26, 0)109var int _q_h26_loh = 0110var int _q_h26_lon = 0111var _q_l26_buf = array.new_float(26, 0.0)112var int _q_l26_idx = 0113var int _q_l26_count = 0114var int _q_l26_skipped = 0115var _q_l26_hiq = array.new_int(26, 0)116var int _q_l26_hih = 0117var int _q_l26_hin = 0118var _q_l26_loq = array.new_int(26, 0)119var int _q_l26_loh = 0120var int _q_l26_lon = 0121var _q_h52_buf = array.new_float(52, 0.0)122var int _q_h52_idx = 0123var int _q_h52_count = 0124var int _q_h52_skipped = 0125var _q_h52_hiq = array.new_int(52, 0)126var int _q_h52_hih = 0127var int _q_h52_hin = 0128var _q_h52_loq = array.new_int(52, 0)129var int _q_h52_loh = 0130var int _q_h52_lon = 0131var _q_l52_buf = array.new_float(52, 0.0)132var int _q_l52_idx = 0133var int _q_l52_count = 0134var int _q_l52_skipped = 0135var _q_l52_hiq = array.new_int(52, 0)136var int _q_l52_hih = 0137var int _q_l52_hin = 0138var _q_l52_loq = array.new_int(52, 0)139var int _q_l52_loh = 0140var int _q_l52_lon = 0141float high_l = na142float low_l = na143float close_l = na144float conversion = na145float base = na146float edge_a = na147float edge_b = na148float top = na149float bottom = na150 151bool _q_running = true152high_l := _q_high * 1.0153low_l := _q_low * 1.0154close_l := _q_close * 1.0155_q_sample1 = high_l156if na(_q_sample1) or math.abs(_q_sample1) > 1.7976931348623157e308157 _q_h9_skipped := _q_h9_skipped + 1158else159 if _q_h9_count >= 9 and _q_h9_hin > 0 and array.get(_q_h9_hiq, _q_h9_hih) == _q_h9_idx160 _q_h9_hih := (_q_h9_hih + 1) % 9161 _q_h9_hin := _q_h9_hin - 1162 if _q_h9_count >= 9 and _q_h9_lon > 0 and array.get(_q_h9_loq, _q_h9_loh) == _q_h9_idx163 _q_h9_loh := (_q_h9_loh + 1) % 9164 _q_h9_lon := _q_h9_lon - 1165 array.set(_q_h9_buf, _q_h9_idx, _q_sample1)166 while _q_h9_hin > 0167 _q_back1_hi = array.get(_q_h9_hiq, (_q_h9_hih + _q_h9_hin - 1) % 9)168 if array.get(_q_h9_buf, _q_back1_hi) <= _q_sample1169 _q_h9_hin := _q_h9_hin - 1170 else171 break172 array.set(_q_h9_hiq, (_q_h9_hih + _q_h9_hin) % 9, _q_h9_idx)173 _q_h9_hin := _q_h9_hin + 1174 while _q_h9_lon > 0175 _q_back1_lo = array.get(_q_h9_loq, (_q_h9_loh + _q_h9_lon - 1) % 9)176 if array.get(_q_h9_buf, _q_back1_lo) >= _q_sample1177 _q_h9_lon := _q_h9_lon - 1178 else179 break180 array.set(_q_h9_loq, (_q_h9_loh + _q_h9_lon) % 9, _q_h9_idx)181 _q_h9_lon := _q_h9_lon + 1182 _q_h9_idx := (_q_h9_idx + 1) % 9183 _q_h9_count := math.min(_q_h9_count + 1, 9)184_q_sample2 = low_l185if na(_q_sample2) or math.abs(_q_sample2) > 1.7976931348623157e308186 _q_l9_skipped := _q_l9_skipped + 1187else188 if _q_l9_count >= 9 and _q_l9_hin > 0 and array.get(_q_l9_hiq, _q_l9_hih) == _q_l9_idx189 _q_l9_hih := (_q_l9_hih + 1) % 9190 _q_l9_hin := _q_l9_hin - 1191 if _q_l9_count >= 9 and _q_l9_lon > 0 and array.get(_q_l9_loq, _q_l9_loh) == _q_l9_idx192 _q_l9_loh := (_q_l9_loh + 1) % 9193 _q_l9_lon := _q_l9_lon - 1194 array.set(_q_l9_buf, _q_l9_idx, _q_sample2)195 while _q_l9_hin > 0196 _q_back2_hi = array.get(_q_l9_hiq, (_q_l9_hih + _q_l9_hin - 1) % 9)197 if array.get(_q_l9_buf, _q_back2_hi) <= _q_sample2198 _q_l9_hin := _q_l9_hin - 1199 else200 break201 array.set(_q_l9_hiq, (_q_l9_hih + _q_l9_hin) % 9, _q_l9_idx)202 _q_l9_hin := _q_l9_hin + 1203 while _q_l9_lon > 0204 _q_back2_lo = array.get(_q_l9_loq, (_q_l9_loh + _q_l9_lon - 1) % 9)205 if array.get(_q_l9_buf, _q_back2_lo) >= _q_sample2206 _q_l9_lon := _q_l9_lon - 1207 else208 break209 array.set(_q_l9_loq, (_q_l9_loh + _q_l9_lon) % 9, _q_l9_idx)210 _q_l9_lon := _q_l9_lon + 1211 _q_l9_idx := (_q_l9_idx + 1) % 9212 _q_l9_count := math.min(_q_l9_count + 1, 9)213_q_sample3 = high_l214if na(_q_sample3) or math.abs(_q_sample3) > 1.7976931348623157e308215 _q_h26_skipped := _q_h26_skipped + 1216else217 if _q_h26_count >= 26 and _q_h26_hin > 0 and array.get(_q_h26_hiq, _q_h26_hih) == _q_h26_idx218 _q_h26_hih := (_q_h26_hih + 1) % 26219 _q_h26_hin := _q_h26_hin - 1220 if _q_h26_count >= 26 and _q_h26_lon > 0 and array.get(_q_h26_loq, _q_h26_loh) == _q_h26_idx221 _q_h26_loh := (_q_h26_loh + 1) % 26222 _q_h26_lon := _q_h26_lon - 1223 array.set(_q_h26_buf, _q_h26_idx, _q_sample3)224 while _q_h26_hin > 0225 _q_back3_hi = array.get(_q_h26_hiq, (_q_h26_hih + _q_h26_hin - 1) % 26)226 if array.get(_q_h26_buf, _q_back3_hi) <= _q_sample3227 _q_h26_hin := _q_h26_hin - 1228 else229 break230 array.set(_q_h26_hiq, (_q_h26_hih + _q_h26_hin) % 26, _q_h26_idx)231 _q_h26_hin := _q_h26_hin + 1232 while _q_h26_lon > 0233 _q_back3_lo = array.get(_q_h26_loq, (_q_h26_loh + _q_h26_lon - 1) % 26)234 if array.get(_q_h26_buf, _q_back3_lo) >= _q_sample3235 _q_h26_lon := _q_h26_lon - 1236 else237 break238 array.set(_q_h26_loq, (_q_h26_loh + _q_h26_lon) % 26, _q_h26_idx)239 _q_h26_lon := _q_h26_lon + 1240 _q_h26_idx := (_q_h26_idx + 1) % 26241 _q_h26_count := math.min(_q_h26_count + 1, 26)242_q_sample4 = low_l243if na(_q_sample4) or math.abs(_q_sample4) > 1.7976931348623157e308244 _q_l26_skipped := _q_l26_skipped + 1245else246 if _q_l26_count >= 26 and _q_l26_hin > 0 and array.get(_q_l26_hiq, _q_l26_hih) == _q_l26_idx247 _q_l26_hih := (_q_l26_hih + 1) % 26248 _q_l26_hin := _q_l26_hin - 1249 if _q_l26_count >= 26 and _q_l26_lon > 0 and array.get(_q_l26_loq, _q_l26_loh) == _q_l26_idx250 _q_l26_loh := (_q_l26_loh + 1) % 26251 _q_l26_lon := _q_l26_lon - 1252 array.set(_q_l26_buf, _q_l26_idx, _q_sample4)253 while _q_l26_hin > 0254 _q_back4_hi = array.get(_q_l26_hiq, (_q_l26_hih + _q_l26_hin - 1) % 26)255 if array.get(_q_l26_buf, _q_back4_hi) <= _q_sample4256 _q_l26_hin := _q_l26_hin - 1257 else258 break259 array.set(_q_l26_hiq, (_q_l26_hih + _q_l26_hin) % 26, _q_l26_idx)260 _q_l26_hin := _q_l26_hin + 1261 while _q_l26_lon > 0262 _q_back4_lo = array.get(_q_l26_loq, (_q_l26_loh + _q_l26_lon - 1) % 26)263 if array.get(_q_l26_buf, _q_back4_lo) >= _q_sample4264 _q_l26_lon := _q_l26_lon - 1265 else266 break267 array.set(_q_l26_loq, (_q_l26_loh + _q_l26_lon) % 26, _q_l26_idx)268 _q_l26_lon := _q_l26_lon + 1269 _q_l26_idx := (_q_l26_idx + 1) % 26270 _q_l26_count := math.min(_q_l26_count + 1, 26)271_q_sample5 = high_l272if na(_q_sample5) or math.abs(_q_sample5) > 1.7976931348623157e308273 _q_h52_skipped := _q_h52_skipped + 1274else275 if _q_h52_count >= 52 and _q_h52_hin > 0 and array.get(_q_h52_hiq, _q_h52_hih) == _q_h52_idx276 _q_h52_hih := (_q_h52_hih + 1) % 52277 _q_h52_hin := _q_h52_hin - 1278 if _q_h52_count >= 52 and _q_h52_lon > 0 and array.get(_q_h52_loq, _q_h52_loh) == _q_h52_idx279 _q_h52_loh := (_q_h52_loh + 1) % 52280 _q_h52_lon := _q_h52_lon - 1281 array.set(_q_h52_buf, _q_h52_idx, _q_sample5)282 while _q_h52_hin > 0283 _q_back5_hi = array.get(_q_h52_hiq, (_q_h52_hih + _q_h52_hin - 1) % 52)284 if array.get(_q_h52_buf, _q_back5_hi) <= _q_sample5285 _q_h52_hin := _q_h52_hin - 1286 else287 break288 array.set(_q_h52_hiq, (_q_h52_hih + _q_h52_hin) % 52, _q_h52_idx)289 _q_h52_hin := _q_h52_hin + 1290 while _q_h52_lon > 0291 _q_back5_lo = array.get(_q_h52_loq, (_q_h52_loh + _q_h52_lon - 1) % 52)292 if array.get(_q_h52_buf, _q_back5_lo) >= _q_sample5293 _q_h52_lon := _q_h52_lon - 1294 else295 break296 array.set(_q_h52_loq, (_q_h52_loh + _q_h52_lon) % 52, _q_h52_idx)297 _q_h52_lon := _q_h52_lon + 1298 _q_h52_idx := (_q_h52_idx + 1) % 52299 _q_h52_count := math.min(_q_h52_count + 1, 52)300_q_sample6 = low_l301if na(_q_sample6) or math.abs(_q_sample6) > 1.7976931348623157e308302 _q_l52_skipped := _q_l52_skipped + 1303else304 if _q_l52_count >= 52 and _q_l52_hin > 0 and array.get(_q_l52_hiq, _q_l52_hih) == _q_l52_idx305 _q_l52_hih := (_q_l52_hih + 1) % 52306 _q_l52_hin := _q_l52_hin - 1307 if _q_l52_count >= 52 and _q_l52_lon > 0 and array.get(_q_l52_loq, _q_l52_loh) == _q_l52_idx308 _q_l52_loh := (_q_l52_loh + 1) % 52309 _q_l52_lon := _q_l52_lon - 1310 array.set(_q_l52_buf, _q_l52_idx, _q_sample6)311 while _q_l52_hin > 0312 _q_back6_hi = array.get(_q_l52_hiq, (_q_l52_hih + _q_l52_hin - 1) % 52)313 if array.get(_q_l52_buf, _q_back6_hi) <= _q_sample6314 _q_l52_hin := _q_l52_hin - 1315 else316 break317 array.set(_q_l52_hiq, (_q_l52_hih + _q_l52_hin) % 52, _q_l52_idx)318 _q_l52_hin := _q_l52_hin + 1319 while _q_l52_lon > 0320 _q_back6_lo = array.get(_q_l52_loq, (_q_l52_loh + _q_l52_lon - 1) % 52)321 if array.get(_q_l52_buf, _q_back6_lo) >= _q_sample6322 _q_l52_lon := _q_l52_lon - 1323 else324 break325 array.set(_q_l52_loq, (_q_l52_loh + _q_l52_lon) % 52, _q_l52_idx)326 _q_l52_lon := _q_l52_lon + 1327 _q_l52_idx := (_q_l52_idx + 1) % 52328 _q_l52_count := math.min(_q_l52_count + 1, 52)329seen := _q_int(_q_iadd(seen, 1))330conversion := ((_q_h9_count == 0 ? 0.0 : array.get(_q_h9_buf, array.get(_q_h9_hiq, _q_h9_hih))) + (_q_l9_count == 0 ? 0.0 : array.get(_q_l9_buf, array.get(_q_l9_loq, _q_l9_loh))) * 1.0) / 2.0331base := ((_q_h26_count == 0 ? 0.0 : array.get(_q_h26_buf, array.get(_q_h26_hiq, _q_h26_hih))) + (_q_l26_count == 0 ? 0.0 : array.get(_q_l26_buf, array.get(_q_l26_loq, _q_l26_loh))) * 1.0) / 2.0332edge_a := a26333edge_b := b26334a26 := a25335a25 := a24336a24 := a23337a23 := a22338a22 := a21339a21 := a20340a20 := a19341a19 := a18342a18 := a17343a17 := a16344a16 := a15345a15 := a14346a14 := a13347a13 := a12348a12 := a11349a11 := a10350a10 := a09351a09 := a08352a08 := a07353a07 := a06354a06 := a05355a05 := a04356a04 := a03357a03 := a02358a02 := a01359a01 := (conversion + base * 1.0) / 2.0360b26 := b25361b25 := b24362b24 := b23363b23 := b22364b22 := b21365b21 := b20366b20 := b19367b19 := b18368b18 := b17369b17 := b16370b16 := b15371b15 := b14372b14 := b13373b13 := b12374b12 := b11375b11 := b10376b10 := b09377b09 := b08378b08 := b07379b07 := b06380b06 := b05381b05 := b04382b04 := b03383b03 := b02384b02 := b01385b01 := ((_q_h52_count == 0 ? 0.0 : array.get(_q_h52_buf, array.get(_q_h52_hiq, _q_h52_hih))) + (_q_l52_count == 0 ? 0.0 : array.get(_q_l52_buf, array.get(_q_l52_loq, _q_l52_loh))) * 1.0) / 2.0386if seen <= _q_iadd(slow, ahead)387 _q_running := false388if _q_running389 top := math.max(edge_a, edge_b)390if _q_running391 bottom := math.min(edge_a, edge_b)392if _q_running393 if close_l > top and conversion > base394 if _q_int(strategy.position_size) < 0395 _q_qty7 = _q_int(_q_iadd(math.abs(_q_int(strategy.position_size)), clip))396 if _q_qty7 <= 0397 runtime.error("market order quantity must be a positive whole unit")398 _q_pos7 = _q_int(strategy.position_size)399 if _q_pos7 > 0 or _q_pos7 < 0 and _q_qty7 < -_q_pos7400 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")401 strategy.order("q1", strategy.long, _q_qty7)402 else if _q_int(strategy.position_size) == 0403 _q_qty8 = _q_int(clip)404 if _q_qty8 <= 0405 runtime.error("market order quantity must be a positive whole unit")406 _q_pos8 = _q_int(strategy.position_size)407 if _q_pos8 > 0 or _q_pos8 < 0 and _q_qty8 < -_q_pos8408 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")409 strategy.order("q2", strategy.long, _q_qty8)410 else if close_l < bottom and conversion < base411 if _q_int(strategy.position_size) > 0412 _q_qty9 = _q_int(_q_iadd(math.abs(_q_int(strategy.position_size)), clip))413 if _q_qty9 <= 0414 runtime.error("market order quantity must be a positive whole unit")415 _q_pos9 = _q_int(strategy.position_size)416 if _q_pos9 < 0 or _q_pos9 > 0 and _q_qty9 < _q_pos9417 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")418 strategy.order("q3", strategy.short, _q_qty9)419 else if _q_int(strategy.position_size) == 0420 _q_qty10 = _q_int(clip)421 if _q_qty10 <= 0422 runtime.error("market order quantity must be a positive whole unit")423 _q_pos10 = _q_int(strategy.position_size)424 if _q_pos10 < 0 or _q_pos10 > 0 and _q_qty10 < _q_pos10425 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")426 strategy.order("q4", strategy.short, _q_qty10)427 else if _q_int(strategy.position_size) > 0428 _q_qty11 = _q_int(math.abs(_q_int(strategy.position_size)))429 if _q_qty11 <= 0430 runtime.error("market order quantity must be a positive whole unit")431 _q_pos11 = _q_int(strategy.position_size)432 if _q_pos11 < 0 or _q_pos11 > 0 and _q_qty11 < _q_pos11433 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")434 strategy.order("q5", strategy.short, _q_qty11)435 else if _q_int(strategy.position_size) < 0436 _q_qty12 = _q_int(math.abs(_q_int(strategy.position_size)))437 if _q_qty12 <= 0438 runtime.error("market order quantity must be a positive whole unit")439 _q_pos12 = _q_int(strategy.position_size)440 if _q_pos12 > 0 or _q_pos12 < 0 and _q_qty12 < -_q_pos12441 runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")442 strategy.order("q6", strategy.long, _q_qty12) How it was tested
The published rules, never tuned on the data, with real costs on every fill. Every strategy here is tested the same way.
- Market data
- CME Globex daily bars, Jan 2, 2016 to Jul 31, 2026
- Rules
- As published, with the published parameters, never tuned on this data
- Size
- 1 contract on every trade
- Contract
- The most traded one, rolled as the market moved
- Fees
- The broker's $0.50 a side, plus CME's and the NFA's fees when the window opens
- Slippage
- 1 tick a side on ES, 2 in NQ's regular session and 3 outside it, 1 on other markets, where it was not measured
- Stops and entries
- Tested on 1-second closes and filled at the next bar
- Contracts traded
- ES: 43 contracts, ESH6 to ESU6GC: 54 contracts, GCG6 to GCQ6
- Costs paid
- ES: $468 in fees, $2,900 in slippageGC: $652 in fees, $2,840 in slippage
- Warm-up
- Each new contract first reads the last 79 trading days, moved onto its prices
- Flagged days
- ES: NoneGC: None Days the data holds too few bars for. Flagged, not removed.
Could you pass
a prop firm challenge
with the Ichimoku cloud strategy?
A backtest says whether a strategy makes money. Our AI runs its trades through the rules of every prop firm account, then tells you which one it would pass and at what size.
No card needed. Free credits every month.
- Most money: Blue Guardian Futures Direct 50K, $5,084
- Best payout odds: Funded Futures Family Straight to Funded 50K, 98%
- Fastest pass: Phidias Express to Live 50K, 11 days
$5,084
Median net across 2,000 simulated runs
- Evaluation
- None
- First payout
- 97%
- Fees paid
- $1,521
Median net across 2,000 simulated runs
Questions about the Ichimoku cloud strategy
What is the Ichimoku cloud strategy?
Be long above the cloud with the conversion line over the base line, short below it with the line under, and flat inside it. The rules follow Goichi Hosoda, Ichimoku Kinko Hyo. Atlantive backtested it on CME futures from January 2016 to July 2026 after costs.
Is the Ichimoku cloud strategy profitable on ES futures?
In this backtest it made money: on ES futures from January 2016 to July 2026 it made $28,920 after costs, over 131 trades, positive in 6 of 11 years; on GC it made $138,458. Buying and holding one ES contract over the same window made $236,212. The average trade was $221, its 95% interval −$778 to $1,324. These are hypothetical results of a backtest, not of trading.
What are the Ichimoku cloud strategy's rules?
The conversion line is the midpoint of the last 9 days' high and low, and the base line of the last 26. The cloud's edges are the mean of those two lines and the midpoint of the last 52 days, each drawn 26 days ahead. The strategy is long when a day closes above the cloud with the conversion line over the base line, and short when it closes below the cloud with the line under it. On any other close it is flat. The rules follow Goichi Hosoda, Ichimoku Kinko Hyo. Its parameters are the published ones, never tuned on the data it was tested on.
How was the Ichimoku cloud strategy backtested?
On CME Globex data from January 2016 to July 2026, one contract, on daily bars, rolled to the most traded contract as the market moved, with the broker's and CME's fees and the slippage measured on each market. Stops and entries were tested on 1-second closes and filled at the next bar. Nothing was fitted to the data.
Can I run the Ichimoku cloud strategy in TradingView?
Yes. The page carries its Pine Script, written by Atlantive's compiler from the same code the backtest ran, for TradingView's strategy tester. A chart's fills and fees can differ from the backtest's, so test it again on the symbol you trade.
Can I change the Ichimoku cloud strategy and test it again?
Yes. Rerun it in Atlantive: a new chat opens with the strategy's rules in the box, for you to read, change and send. The agent writes the code, backtests it on the market and window you name, and reports the result with its costs.