Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

Gotobi Teriyaki

A Pine Script v5 strategy with no technical-analysis calculation. It has 4 order rules, 2 entries among them, and trades long and short with the default settings. Exits wait for a signal; there is no stop loss. Each trade is one contract and pays no commission. It has no settings.

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 Gotobi Teriyaki repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 58 of 58 trades.
How did Gotobi Teriyaki do on BTCUSDT 1D with default settings?
+2.77%
From 26 Jan 2024 to 21 Oct 2026, over 193 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Does Gotobi Teriyaki 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: 193 before, 137 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 Gotobi Teriyaki use a stop loss?
No
Every exit waits for a signal; nothing limits a losing trade before it fires.
Does Gotobi Teriyaki run in Zeal Terminal?
Yes
It compiles in 19 ms and runs 1,000 bars in 48 ms, in the browser.

BTCUSDT · 1D · default settings

  • 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 (0)
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOct$1,029,400$2,025,273Equity from $1,000,000
Binance BTCUSDT 1D candles, 26 Jan 2024 to 21 Oct 2026, 1,000 bars, default settings. Triangles mark entries; circles mark exits. The script plots nothing itself; the lines and the lower pane are its own calculations, drawn for reference.
Net profit
+2.77%
$27,724.80
Buy and hold
+102.5%
same period
Closed trades
193
106 won · 87 lost
Profitable
54.9%
of closed trades
Profit factor
1.28
gross profit ÷ gross loss
Max drawdown
1.52%
−$15,533.30

One run with the author's default settings, $1,000,000 starting capital, commission as the script sets it. A long position was still open at the last bar. 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

    No stop loss

    Every exit waits for a signal. Nothing limits a losing trade before the exit condition fires.

  • Check

    No commission

    The backtest assumes free trading. Results on any real exchange will be lower.

  • 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.

The script declares no settings.

What it calculates

No technical-analysis calculation: the script works on prices and settings directly.

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.

buy_timebuy_timeconditionsell_timesell_timeconditionis_5day_10day, flydayis_5day_10day · flyday2 conditionsflyday_5day_10dayflyday_5day_10dayconditionclose_all:close_all strategy.close_allentry:buyOpen buystrategy.entryentry:sellOpen sellstrategy.entrybgcolor:12bgcolorbgcolorbgcolor:14bgcolorbgcolor

Order rules

OrderFires whenBy defaultLine
Close not buy_timeOn17
Close not sell_timeOn20
Open buy longbuy_timeOn23
Open sell shortsell_timeOn25

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.

58/58trades 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 timingOrders fill at the next bar's open, after the signal bar has closed.

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+2.8%+102.5%19355%1.281.5%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h−0.1%+5.5%3241%0.850.3%8 May 2026 – 21 Oct 2026
ETHUSDT 1D+0.1%+9.8%19354%1.270.1%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h−0.0%+8.4%3238%0.650.0%8 May 2026 – 21 Oct 2026
SOLUSDT 1D+0.0%+16.7%19352%1.100.0%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h−0.0%+21.5%3244%0.770.0%8 May 2026 – 21 Oct 2026
BNBUSDT 1D+0.0%+148.3%19357%1.510.0%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h−0.0%+17.1%3247%0.830.0%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 market6152%$9,151.42
Sideways market8958%$19,071.70
Falling market4351%−$498.33

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

How bad could the drawdown be?

2.6%

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

0%3%
The first 150 of 193 trades
SideEntryExitBarsP&L
long31 Jan 2024 42,941.101 Feb 2024 42,580.001−$361.10
long6 Feb 2024 42,708.707 Feb 2024 43,099.001$390.26
long10 Feb 2024 47,132.8011 Feb 2024 47,751.101$618.30
long16 Feb 2024 51,880.0017 Feb 2024 52,124.101$244.09
long21 Feb 2024 52,258.8022 Feb 2024 51,849.401−$409.44
long24 Feb 2024 50,744.2025 Feb 2024 51,568.201$824.06
long6 Mar 2024 63,724.007 Mar 2024 66,074.001$2,350.03
long9 Mar 2024 68,124.2010 Mar 2024 68,313.301$189.08
long16 Mar 2024 69,499.8017 Mar 2024 65,300.601−$4,199.20
long21 Mar 2024 67,840.5022 Mar 2024 65,501.301−$2,339.23
long26 Mar 2024 69,880.0027 Mar 2024 69,988.001$107.99
long30 Mar 2024 69,850.5031 Mar 2024 69,582.201−$268.36
long6 Apr 2024 67,820.607 Apr 2024 68,896.001$1,075.37
long11 Apr 2024 70,631.1012 Apr 2024 70,006.201−$624.86
long16 Apr 2024 63,420.0017 Apr 2024 63,793.401$373.41
long20 Apr 2024 63,818.0021 Apr 2024 64,940.601$1,122.57
long26 Apr 2024 64,498.3027 Apr 2024 63,770.001−$728.33
long1 May 2024 60,672.002 May 2024 58,365.001−$2,307.04
long4 May 2024 62,882.005 May 2024 63,892.001$1,010.02
long11 May 2024 60,800.0012 May 2024 60,826.001$26.00
long16 May 2024 66,206.5017 May 2024 65,235.201−$971.30
long21 May 2024 71,446.6022 May 2024 70,148.301−$1,298.28
long25 May 2024 68,550.0026 May 2024 69,290.601$740.57
long31 May 2024 68,352.201 Jun 2024 67,540.001−$812.16
long6 Jun 2024 71,108.007 Jun 2024 70,799.101−$308.94
long11 Jun 2024 69,540.0012 Jun 2024 67,314.201−$2,225.77
long15 Jun 2024 66,044.0016 Jun 2024 66,228.301$184.26
long21 Jun 2024 64,870.0022 Jun 2024 64,143.601−$726.43
long26 Jun 2024 61,806.0027 Jun 2024 60,865.001−$941.03
long29 Jun 2024 60,427.8030 Jun 2024 60,986.701$558.84
long6 Jul 2024 56,628.807 Jul 2024 58,230.101$1,601.34
long11 Jul 2024 57,725.8012 Jul 2024 57,339.901−$385.96
long16 Jul 2024 64,724.1017 Jul 2024 65,044.001$319.94
long20 Jul 2024 66,660.0021 Jul 2024 67,140.001$479.96
long26 Jul 2024 65,799.9027 Jul 2024 67,908.001$2,108.05
long31 Jul 2024 66,188.001 Aug 2024 64,628.001−$1,559.99
long6 Aug 2024 54,018.807 Aug 2024 56,022.001$2,003.18
long10 Aug 2024 60,838.0011 Aug 2024 60,923.501$85.52
long16 Aug 2024 57,541.1017 Aug 2024 58,874.601$1,333.54
long21 Aug 2024 59,013.8022 Aug 2024 61,156.001$2,142.23
long24 Aug 2024 64,037.2025 Aug 2024 64,157.001$119.78
long31 Aug 2024 59,124.001 Sep 2024 58,974.001−$149.99
long6 Sep 2024 56,180.007 Sep 2024 53,963.001−$2,217.03
long11 Sep 2024 57,636.0012 Sep 2024 57,338.001−$297.99
long14 Sep 2024 60,498.0015 Sep 2024 59,993.001−$504.97
long21 Sep 2024 63,201.1022 Sep 2024 63,349.001$147.92
long26 Sep 2024 63,152.0027 Sep 2024 65,174.001$2,021.98
long1 Oct 2024 63,327.602 Oct 2024 60,804.901−$2,522.68
long5 Oct 2024 62,086.006 Oct 2024 62,058.001−$27.99
long11 Oct 2024 60,326.4012 Oct 2024 62,540.001$2,213.59
long16 Oct 2024 67,074.1017 Oct 2024 67,620.001$545.86
long19 Oct 2024 68,428.0020 Oct 2024 68,378.001−$50.00
long26 Oct 2024 66,698.3027 Oct 2024 67,092.801$394.44
long31 Oct 2024 72,344.801 Nov 2024 70,292.001−$2,052.74
long6 Nov 2024 69,372.007 Nov 2024 75,572.001$6,199.98
long9 Nov 2024 76,509.8010 Nov 2024 76,677.501$167.68
long16 Nov 2024 91,032.1017 Nov 2024 90,588.001−$444.10
long21 Nov 2024 94,286.6022 Nov 2024 98,317.101$4,030.56
long26 Nov 2024 93,010.0027 Nov 2024 91,965.201−$1,044.85
long30 Nov 2024 97,460.001 Dec 2024 96,408.001−$1,052.01
long6 Dec 2024 96,945.607 Dec 2024 99,740.801$2,795.21
long11 Dec 2024 96,593.0012 Dec 2024 101,125.001$4,532.00
long14 Dec 2024 101,424.0015 Dec 2024 101,420.001−$4.24
long21 Dec 2024 97,805.4022 Dec 2024 97,292.001−$513.44
long26 Dec 2024 99,429.6027 Dec 2024 95,791.601−$3,638.01
long31 Dec 2024 92,792.101 Jan 2025 93,576.001$783.95
long4 Jan 2025 98,174.205 Jan 2025 98,220.501$46.34
long11 Jan 2025 94,726.1012 Jan 2025 94,600.001−$126.11
long16 Jan 2025 100,497.0017 Jan 2025 99,987.301−$510.05
long21 Jan 2025 102,260.0022 Jan 2025 106,144.001$3,883.82
long25 Jan 2025 104,871.0026 Jan 2025 104,747.001−$123.65
long31 Jan 2025 104,723.001 Feb 2025 102,430.001−$2,293.38
long6 Feb 2025 96,612.407 Feb 2025 96,554.401−$58.09
long11 Feb 2025 97,430.8012 Feb 2025 95,778.201−$1,652.61
long15 Feb 2025 97,500.5016 Feb 2025 97,569.701$69.20
long21 Feb 2025 98,305.0022 Feb 2025 96,182.001−$2,123.02
long26 Feb 2025 88,680.4027 Feb 2025 84,250.101−$4,430.30
long6 Mar 2025 90,606.007 Mar 2025 89,931.901−$674.12
long11 Mar 2025 78,595.9012 Mar 2025 82,933.001$4,337.13
long15 Mar 2025 83,983.2016 Mar 2025 84,338.401$355.25
long21 Mar 2025 84,223.4022 Mar 2025 84,088.801−$134.59
long26 Mar 2025 87,392.9027 Mar 2025 86,909.201−$483.71
long29 Mar 2025 84,424.4030 Mar 2025 82,648.501−$1,775.85
long5 Apr 2025 83,889.906 Apr 2025 83,538.001−$351.88
long11 Apr 2025 79,607.3012 Apr 2025 83,423.801$3,816.53
long16 Apr 2025 83,644.0017 Apr 2025 84,030.401$386.39
long19 Apr 2025 84,474.7020 Apr 2025 85,077.001$602.30
long26 Apr 2025 94,638.7027 Apr 2025 94,628.001−$10.68
long1 May 2025 94,172.002 May 2025 96,489.901$2,317.90
long6 May 2025 94,733.707 May 2025 96,834.001$2,100.34
long10 May 2025 102,972.0011 May 2025 104,810.001$1,837.54
long16 May 2025 103,764.0017 May 2025 103,464.001−$299.81
long21 May 2025 106,850.0022 May 2025 109,644.001$2,793.99
long24 May 2025 107,318.0025 May 2025 107,762.001$443.60
long31 May 2025 103,985.001 Jun 2025 104,592.001$606.41
long6 Jun 2025 101,509.007 Jun 2025 104,288.001$2,779.74
long11 Jun 2025 110,274.0012 Jun 2025 108,645.001−$1,629.26
long14 Jun 2025 106,067.0015 Jun 2025 105,415.001−$651.96
long21 Jun 2025 103,298.0022 Jun 2025 102,120.001−$1,177.96
long26 Jun 2025 107,341.0027 Jun 2025 106,947.001−$393.53
long1 Jul 2025 107,147.002 Jul 2025 105,681.001−$1,465.38
long5 Jul 2025 107,984.006 Jul 2025 108,198.001$213.87
long11 Jul 2025 116,010.0012 Jul 2025 117,528.001$1,517.65
long16 Jul 2025 117,758.0017 Jul 2025 118,630.001$872.36
long19 Jul 2025 117,925.0020 Jul 2025 117,840.001−$84.83
long26 Jul 2025 117,614.0027 Jul 2025 117,920.001$305.68
long31 Jul 2025 117,840.001 Aug 2025 115,764.001−$2,076.22
long6 Aug 2025 114,130.007 Aug 2025 114,992.001$862.52
long9 Aug 2025 116,675.0010 Aug 2025 116,462.001−$212.49
long16 Aug 2025 117,342.0017 Aug 2025 117,381.001$38.62
long21 Aug 2025 114,271.0022 Aug 2025 112,500.001−$1,771.23
long26 Aug 2025 110,112.0027 Aug 2025 111,763.001$1,651.24
long30 Aug 2025 108,377.0031 Aug 2025 108,816.001$438.93
long6 Sep 2025 110,660.007 Sep 2025 110,188.001−$472.02
long11 Sep 2025 113,960.0012 Sep 2025 115,483.001$1,522.69
long16 Sep 2025 115,350.0017 Sep 2025 116,789.001$1,439.25
long20 Sep 2025 115,632.0021 Sep 2025 115,686.001$53.24
long26 Sep 2025 108,994.0027 Sep 2025 109,643.001$648.97
long1 Oct 2025 114,049.002 Oct 2025 118,595.001$4,546.05
long4 Oct 2025 122,232.005 Oct 2025 122,391.001$158.78
long11 Oct 2025 112,774.0012 Oct 2025 110,644.001−$2,130.09
long16 Oct 2025 110,763.0017 Oct 2025 108,194.001−$2,569.01
long21 Oct 2025 110,532.0022 Oct 2025 108,298.001−$2,234.43
long25 Oct 2025 111,005.0026 Oct 2025 111,646.001$641.37
long31 Oct 2025 108,323.001 Nov 2025 109,608.001$1,285.14
long6 Nov 2025 103,885.007 Nov 2025 101,346.001−$2,539.12
long11 Nov 2025 106,011.0012 Nov 2025 103,059.001−$2,952.13
long15 Nov 2025 94,594.0016 Nov 2025 95,596.201$1,002.23
long21 Nov 2025 86,637.2022 Nov 2025 85,129.401−$1,507.80
long26 Nov 2025 87,370.0027 Nov 2025 90,484.001$3,114.04
long29 Nov 2025 90,890.7030 Nov 2025 90,802.401−$88.27
long6 Dec 2025 89,330.007 Dec 2025 89,236.801−$93.24
long11 Dec 2025 92,015.4012 Dec 2025 92,513.401$498.00
long16 Dec 2025 86,432.1017 Dec 2025 87,863.401$1,431.35
long20 Dec 2025 88,136.9021 Dec 2025 88,360.901$223.96
long26 Dec 2025 87,225.3027 Dec 2025 87,369.601$144.29
long31 Dec 2025 88,485.501 Jan 2026 87,648.201−$837.29
long6 Jan 2026 93,859.707 Jan 2026 93,748.001−$111.74
long10 Jan 2026 90,641.3011 Jan 2026 90,504.701−$136.57
long16 Jan 2026 95,604.8017 Jan 2026 95,550.901−$53.87
long21 Jan 2026 88,427.7022 Jan 2026 89,454.701$1,027.07
long24 Jan 2026 89,600.3025 Jan 2026 89,225.301−$374.92
long31 Jan 2026 84,260.501 Feb 2026 78,741.101−$5,519.40
long6 Feb 2026 62,909.907 Feb 2026 70,580.301$7,670.39
long11 Feb 2026 68,841.3012 Feb 2026 67,082.501−$1,758.76
long14 Feb 2026 68,854.0015 Feb 2026 69,822.901$968.97
long21 Feb 2026 68,020.0022 Feb 2026 67,975.901−$44.07
long26 Feb 2026 67,988.0027 Feb 2026 67,485.201−$502.85
long6 Mar 2026 70,891.007 Mar 2026 68,114.001−$2,777.00
long11 Mar 2026 69,948.6012 Mar 2026 70,191.901$243.22

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: 193 before, 137 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.

⋯// © hosono_p-//@version=5+//@version=6strategy("Gotobi Teriyaki", overlay=true)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 19 msYes 1,000 bars in 48 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.

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © hosono_p//@version=5strategy("Gotobi Teriyaki", overlay=true)current_day= dayofmonth(time("1"), "Asia/Tokyo")saturday = dayofmonth(time("1")+ 1000*60*60*24 , "Asia/Tokyo")sunday = dayofmonth(time("1")+ 1000*60*60*48, "Asia/Tokyo")is_5day_10day= current_day % 5==0flyday = dayofweek(time("1"), "Asia/Tokyo") == 6flyday_5day_10day = (flyday and saturday % 5==0) or (flyday and sunday % 5==0)buy_time = time("1", "0200-0955:23456","Asia/Tokyo") and is_5day_10day or time("1", "0200-0955:23456","Asia/Tokyo") and flyday_5day_10daybgcolor(buy_time ? color.new(color.green, 90) : na)sell_time = time("1", "0955-1500:23456","Asia/Tokyo") and is_5day_10day or time("1", "0955-1500:23456","Asia/Tokyo") and flyday_5day_10daybgcolor(sell_time ? color.new(color.red, 90) : na)if strategy.position_size > 0    if not buy_time        strategy.close_all()if strategy.position_size < 0    if not sell_time        strategy.close_all() if strategy.position_size == 0    if buy_time        strategy.entry("buy",strategy.long)    if sell_time        strategy.entry("sell",strategy.short)