Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

Ichimoku Breakout Kumo SWING TRADER (By Insert Cheese)

A Pine Script v5 strategy built on Crossover (close, ss_high) and Crossunder (close, ss_low). It has 5 order rules, 2 entries among them, and trades long and short with the default settings. Exits use a stop loss and a profit target. Each trade commits 100% of equity and pays 0.05% commission. 16 settings; defaults include Tenkan-Sen 9, Kijun-Sen 26 and Senkou-Span B 52.

Generated from the script's code by a template: every clause is a fact read from the source. Not written by a person or a model, and not taken from the author's description.

Does Ichimoku Breakout Kumo SWING TRADER (By Insert Cheese) repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 7 of 7 trades.
How did Ichimoku Breakout Kumo SWING TRADER (By Insert Cheese) do on BTCUSDT 1D with default settings?
+34.12%
From 26 Jan 2024 to 21 Oct 2026, over 27 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Does Ichimoku Breakout Kumo SWING TRADER (By Insert Cheese) run in Pine Script v6?
No
The v6 version runs in Zeal Terminal's engine, but its results differ from the v5 version: Trades differ: 27 before, 43 after on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. It is shown for reference and is not offered as a download.
Does Ichimoku Breakout Kumo SWING TRADER (By Insert Cheese) use a stop loss?
Yes
strategy.exit sets a stop on line 84.
Does Ichimoku Breakout Kumo SWING TRADER (By Insert Cheese) run in Zeal Terminal?
Yes
It compiles in 34 ms and runs 1,000 bars in 92 ms, in the browser.

BTCUSDT · 1D · default settings

  • Tenkan-Sen
  • Kijun-Sen
  • Chikou-Span
  • Senkou-Span A
  • Senkou-Span B
  • Plot
  • Plot
  • Plot
  • Winning trade
  • Losing trade
  • Equity
  • Buy and hold
Prerendered with the defaults. Change anything and run it here. The script runs in your browser.
Settings (16)
50,00075,000100,000125,000150,000AprJulOct2025AprJulOct2026AprJulOct$671$1,013Equity from $500
Binance BTCUSDT 1D candles, 26 Jan 2024 to 21 Oct 2026, 1,000 bars, default settings. Triangles mark entries; circles mark exits. Lines are what the script plots.
Net profit
+34.12%
$170.58
Buy and hold
+102.5%
same period
Closed trades
27
8 won · 19 lost
Profitable
29.6%
of closed trades
Profit factor
1.38
gross profit ÷ gross loss
Max drawdown
41.78%
−$208.91

One run with the author's default settings, $500 starting capital, commission as the script sets it. A single backtest says little about future results and is not a recommendation. Backtests are simulations on historical data and are not investment advice.

Review

What a careful reader of this script would point out, found by checking the source and the backtest.

  • Check

    Every trade uses all the equity

    default_qty_value is 100% of equity.

  • Note

    No slippage

    Fills are assumed at the exact open price. Add slippage in the properties for a more realistic test.

Settings

Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.

SettingDefaultType and rangeFeeds
Parámetros Ichimoku
Tenkan-Sen 9int · min 1tenkan
Kijun-Sen 26int · min 1kijun
Senkou-Span B 52int · min 1senkouB
Chikou-Span26int · min 1Chikou-Span
Senkou-Span A26int · min 1Senkou-Span A Senkou-Span B ss_high ss_low
Backtest Operativa
Entradas Largotrueboolentry Buy close Buy line 64 line 68
Entradas Cortotrueboolentry Sell close Buy line 70 line 75
Backtest rango de fechas
Desde Mes1int · min 1 · max 12inDataRange
Desde Año2000int · min 1970inDataRange
Desde Día1int · min 1 · max 31inDataRange
Hasta Día1int · min 1 · max 31inDataRange
Hasta Mes1int · min 1 · max 12inDataRange
Hasta Año2099int · min 1970inDataRange
SL y TP metodotrueboolline 81
Take Profit $$100.0float · min 0.1 · step 10.0pp exit Close plot
Stop Loss $$100.0float · min 0.1 · step 10.0lp exit Close plot

What it calculates

  • Crossoverclose, ss_highprice_cross_above_kumo · line 56
  • Crossunderclose, ss_lowprice_cross_below_kumo · line 57

Signal flow

How price data and settings reach the orders. Each box is a name in the script, or several computed the same way; each arrow is a value one of them reads. Hover a box for its members.

closecloseprice datats_barsTenkan-Sen setting · 9ks_barsKijun-Sen setting · 26ssb_barsSenkou-Span B setting · 52ss_offsetSenkou-Span Asetting · 26timetimeprice datafromYearDesde Añosetting · 2000fromMonthDesde Messetting · 1fromDayDesde Díasetting · 1thruYearHasta Añosetting · 2099thruMonthHasta Messetting · 1thruDayHasta Díasetting · 1pTake Profit $$setting · 100.0lStop Loss $$setting · 100.0price_cross_above_kumoCrossover→ price_cross_above_kumoprice_cross_below_kumoCrossunder→ price_cross_below_kumotenkantenkanvaluekijunkijunvaluesenkouAsenkouAvaluesenkouBsenkouBvaluess_high, ss_lowss_high · ss_low2 valuesss_mediumss_mediumvaluesl_longsl_longvaluesl_shortsl_shortvalueinDataRangeinDataRangeconditionbullishbullishconditionbearishbearishconditioncompradocompradoconditionvendidovendidoconditionprice_above_kumo, price_below_kumoprice_above_kumo · pric…2 conditionsentry:BuyOpen Buystrategy.entryclose:BuyClose Buystrategy.closeentry:SellOpen Sellstrategy.entryexit:Closeexit Closestrategy.exitplot:31Tenkan-Senplotplot:32Kijun-Senplotplot:33Chikou-Spanplotplot:34Senkou-Span Aplotplot:35Senkou-Span Bplotfill:Cloud colorCloud colorfillplot:89plotplotplot:90plotplotplot:91plotplotfill:92Fillfill × 2fill:93Fillfill × 2

Order rules

OrderFires whenBy defaultLine
Open Buy long( not comprado and bullish and inDataRange and long_entry_enable)On66
Close Buy(comprado and bearish and inDataRange and long_entry_enable)On69
Open Sell short( not vendido and bearish and inDataRange and short_entry_enable)On72
Close Buy(vendido and bullish and inDataRange and short_entry_enable)On76
Exit Close stop and limitevery barOn84

Each order is guarded by the setting shown. “Off” orders never fire unless that setting is switched on.

Does it repaint?

No

No repainting patterns in the source, and the live replay matched history.

7/7trades identical when replayed liveThe last 300 bars, from 26 Dec 2025, were fed to the engine as live ticks, four per bar, and compared with the historical run. Orders are decided once per closed bar, so nothing can change mid-bar.
  • ClearHigher-timeframe dataThe script requests no other symbol or timeframe.
  • ClearFuture-bar referencesNo negative history offsets such as close[-1].
  • ClearIntrabar recalculationNo varip, calc_on_every_tick or realtime-only state. Orders are decided once per closed bar.
  • ClearOrder timingprocess_orders_on_close = true: orders fill at the signal bar's close.

The checks read the source; the replay runs it. Together they catch the common causes, not every possible one.

Other markets

The same script with default settings on 8 Binance markets. Each row is a separate backtest over the most recent 1,000 bars.

MarketNetBuy and holdTradesWonProfit factorMax drawdownPeriod
BTCUSDT 1D+34.1%+102.5%2730%1.3841.8%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h+14.7%+5.5%2040%1.4215.5%8 May 2026 – 21 Oct 2026
ETHUSDT 1D+32.3%+9.8%2536%1.2238.5%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h−6.6%+8.4%3119%0.9131.3%8 May 2026 – 21 Oct 2026
SOLUSDT 1D+16.0%+16.7%2631%1.1371.7%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+33.3%+21.5%2030%1.7516.7%8 May 2026 – 21 Oct 2026
BNBUSDT 1D+108.8%+148.3%2450%1.9933.0%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h−26.0%+17.1%3318%0.4128.8%8 May 2026 – 21 Oct 2026

Backtests are simulations on historical data and are not investment advice.

The trades

By market direction

At entry, last 90 barsTradesWonP&L
Rising market729%−$116.15
Sideways market1527%$138.22
Falling market540%$148.51

Rising and falling mean the market moved more than 15% over the 90 bars before entry.

How bad could the drawdown be?

49.1%

The 95th percentile of the worst drawdown when the same 27 trades are reshuffled 5,000 times. The bar spans the 5th to 95th percentile, 24.0% to 49.1%; the tick is what actually happened, 38.4%. Order luck alone moves it this much.

0%56%
All 27 trades
SideEntryExitBarsP&L
long14 Apr 2024 65,661.8030 Apr 2024 60,672.0016−$38.46
short30 Apr 2024 60,672.0017 May 2024 67,024.0017−$48.81
long17 May 2024 67,024.0021 Jun 2024 64,143.6035−$18.14
short21 Jun 2024 64,143.6019 Jul 2024 66,660.0028−$15.88
long19 Jul 2024 66,660.004 Aug 2024 58,161.0016−$48.64
short4 Aug 2024 58,161.0013 Sep 2024 60,498.0040−$13.60
long13 Sep 2024 60,498.0015 Sep 2024 59,132.002−$7.46
short15 Sep 2024 59,132.0017 Sep 2024 60,314.002−$6.49
long17 Sep 2024 60,314.0010 Nov 2024 80,250.7054$99.65
long2 Jan 2025 96,984.802 Feb 2025 97,700.6031$2.56
short2 Feb 2025 97,700.603 Feb 2025 101,329.001−$15.44
long3 Feb 2025 101,329.004 Feb 2025 97,763.101−$14.08
short4 Feb 2025 97,763.1022 Apr 2025 93,443.0077$16.21
long22 Apr 2025 93,443.0011 Jul 2025 117,317.0080$99.56
long22 Aug 2025 116,936.0025 Aug 2025 110,112.003−$29.11
short25 Aug 2025 110,112.0018 Sep 2025 117,074.0024−$29.68
long18 Sep 2025 117,074.0022 Sep 2025 112,651.004−$16.75
short22 Sep 2025 112,651.001 Oct 2025 118,595.009−$22.35
long1 Oct 2025 118,595.0010 Oct 2025 112,775.009−$19.68
short10 Oct 2025 112,775.0021 Nov 2025 82,573.7042$99.68
long14 Jan 2026 96,951.8025 Jan 2026 86,670.4011−$50.59
short25 Jan 2026 86,670.405 Feb 2026 66,156.6011$99.63
short18 Mar 2026 71,246.5015 Apr 2026 74,810.0028−$26.64
long15 Apr 2026 74,810.0031 May 2026 73,674.4046−$8.01
short31 May 2026 73,674.4025 Jun 2026 58,561.0025$99.56
short15 Aug 2026 63,086.0018 Aug 2026 64,725.403−$15.84
long18 Aug 2026 64,725.4021 Aug 2026 76,056.703$99.38

Similar scripts

No other indicator or strategy here shares enough of its calculations.

Upgrade and export

Written in Pine Script v5. The clean-v5 step types the settings and moves when = into if blocks, which v6 requires; it is run before and after like any upgrade.

  • No v6-only features. v6 is not needed to run this script.

Clean v5

Verified

Nothing to change.

Does it run in Pine Script v6?

No

The v6 version runs in Zeal Terminal's engine, but its results differ from the v5 version: Trades differ: 27 before, 43 after on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. It is shown for reference and is not offered as a download. It differs from the v5 version by 1 edit.

-//@version=5+//@version=6// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 34 msYes 1,000 bars in 92 msNot measured
PineTSNot testedNot testedNot measured

“Matches TradingView” needs this script's own output exported from TradingView and compared bar by bar, which has not been done for this script. The engine is built on OpenPineScript, whose conformance results are in its conformance report.

Source

Copied verbatim from the author's published script, with its licence header intact. The author may have updated the original since this snapshot.

//@version=5// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © moneyofthegame// Basado en estrategias con el indicador ICHIMOKU KINKO HIYO// El tiempo es oro colega :)//@version=5strategy('Ichimoku Cloud Estrategia Ruptura Nubes SWING TRADER  (By Insert Cheese)', shorttitle='Ichimoku Cloud Estrategia Ruptura Nubes SWING TRADER  (By Insert Cheese)',         overlay=true,         initial_capital=500,         process_orders_on_close=true,         default_qty_type=strategy.percent_of_equity,         default_qty_value=100,         commission_type=strategy.commission.percent,         commission_value=0.05,         currency=currency.NONE)         // Inputs: Ichimoku parametrosts_bars =   input.int(9,  minval=1, title='Tenkan-Sen ',          group='Parámetros Ichimoku')ks_bars =   input.int(26, minval=1, title='Kijun-Sen ',           group='Parámetros Ichimoku')ssb_bars =  input.int(52, minval=1, title='Senkou-Span B ',       group='Parámetros Ichimoku')cs_offset = input.int(26, minval=1, title='Chikou-Span',          group='Parámetros Ichimoku')ss_offset = input.int(26, minval=1, title='Senkou-Span A',        group='Parámetros Ichimoku')middle(len) => // LONGITITUD Ichimoku (SenkouB)    math.avg(ta.lowest(len), ta.highest(len))// Ichimoku Componentestenkan = middle (ts_bars)kijun   = middle (ks_bars)senkouA = math.avg(tenkan, kijun)senkouB = middle (ssb_bars)// Plot Ichimoku Kinko Hyoplot(tenkan,                                     color=color.rgb(171, 128, 0),                              title="Tenkan-Sen",    display = display.none)plot(kijun,                                      color=color.rgb(39, 0, 112),                               title="Kijun-Sen",     display = display.none)plot(close, offset=-cs_offset+1,                 color=color.rgb(224, 200, 251),                            title="Chikou-Span",   display = display.none)sa=plot(senkouA, offset=ss_offset-1,             color=color.rgb(68, 128, 0),                               title="Senkou-Span A", display = display.none)sb=plot(senkouB, offset=ss_offset-1,             color=color.rgb(131, 0, 120),                              title="Senkou-Span B", display = display.none)fill(sa, sb, color = senkouA > senkouB ?         color.rgb(0, 211, 11, 82) : color.rgb(75, 0, 126, 82),   title="Cloud color")// Calculating ss_high = math.max(senkouA[ss_offset - 1], senkouB[ss_offset - 1])  //parte alta de la nubess_low = math.min(senkouA[ss_offset - 1], senkouB[ss_offset - 1])   //parte baja de la nubess_medium = ss_low + (ss_high - ss_low) / 2                         //parte intermedia// Input para seleccionar largos o cortoslong_entry_enable =  input.bool(true, title='Entradas Largo',   group='Backtest Operativa', inline='SP20')short_entry_enable = input.bool(true, title='Entradas Corto',   group='Backtest Operativa', inline='SP20')// Input backtest rango de fechas fromMonth =  input.int  (defval=1,     title='Desde Mes',  minval=1,     maxval=12,      group='Backtest rango de fechas')fromYear  =  input.int  (defval=2000,  title='Desde Año',  minval=1970,                  group='Backtest rango de fechas')fromDay   =  input.int  (defval=1,     title='Desde Día',  minval=1,     maxval=31,      group='Backtest rango de fechas')thruDay   =  input.int  (defval=1,     title='Hasta Día',  minval=1,     maxval=31,      group='Backtest rango de fechas')thruMonth =  input.int  (defval=1,     title='Hasta Mes',  minval=1,     maxval=12,      group='Backtest rango de fechas')thruYear  =  input.int  (defval=2099,  title='Hasta Año',  minval=1970,                  group='Backtest rango de fechas')inDataRange = time >= timestamp(syminfo.timezone, fromYear, fromMonth, fromDay, 0, 0) and time < timestamp(syminfo.timezone, thruYear, thruMonth, thruDay, 0, 0)//Estrategia// Señales de entrada y salidaprice_above_kumo = close  > ss_high // precio cierra arriba de la nubeprice_below_kumo = close  < ss_low // precio cierra abajo de la nubeprice_cross_above_kumo = ta.crossover  (close  , ss_high )   //precio cruza la nube parte altaprice_cross_below_kumo = ta.crossunder (close  , ss_low )     // precio cruza la nube parte bajabullish = (price_above_kumo and price_cross_above_kumo)bearish = (price_below_kumo and price_cross_below_kumo)comprado = strategy.position_size > 0vendido = strategy.position_size  < 0sl_long =  price_above_kumosl_short = price_below_kumoif ( not comprado and bullish and inDataRange and long_entry_enable)//realizar compra    strategy.entry("Buy", strategy.long)//realizar salida longif (comprado and bearish and inDataRange and long_entry_enable)    strategy.close ("Buy", comment = "cerrado")if ( not vendido and bearish and inDataRange and short_entry_enable)//realizar venta    strategy.entry("Sell", strategy.short)    //realizar salida longif (vendido  and bullish and inDataRange and short_entry_enable)    strategy.close ("Buy", comment = "cerrado")// Función Calcular TP y SL// Inputs para SL y TPtpenable = input.bool(true, title =  "SL y TP metodo")moneyToSLPoints(money)  =>    strategy.position_size !=0 and tpenable ?  (money / syminfo.pointvalue / math.abs (strategy.position_size)) / syminfo.mintick : nap = moneyToSLPoints(input.float(  100.0, minval=0.1, step=10.0, title = "Take Profit $$"))l = moneyToSLPoints(input.float(  100.0, minval=0.1, step=10.0, title = "Stop Loss $$"))strategy.exit("Close", profit = p, loss = l)// debug plots for visualize SL & TP levelspointsToPrice(pp) =>    na(pp) ? na : strategy.position_avg_price + pp * math.sign(strategy.position_size) * syminfo.mintick    pp = plot(pointsToPrice(p),color = color.rgb(76, 175, 79, 96), style = plot.style_linebr )lp = plot(pointsToPrice(-l),color = color.rgb(76, 175, 79, 96), style = plot.style_linebr )avg = plot( strategy.position_avg_price, color = color.rgb(76, 175, 79, 96), style = plot.style_linebr )fill(pp, avg, color = color.rgb(76, 175, 79, 96))fill(avg, lp, color = color.rgb(255, 82, 82, 97))