Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

Striker Play

A Pine Script v5 strategy built on Highest (high, 3) and Lowest (low, 3). It has 2 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. 1 setting; defaults include Number of Previous Candles 3.

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

BTCUSDT · 1D · default settings

  • Shape
  • Shape
  • 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 (1)
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOct$970,224$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. Lines are what the script plots.
Net profit
−3.16%
−$31,588.00
Buy and hold
+102.5%
same period
Closed trades
88
41 won · 47 lost
Profitable
46.6%
of closed trades
Profit factor
0.84
gross profit ÷ gross loss
Max drawdown
8.22%
−$83,858.50

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.

SettingDefaultType and rangeFeeds
Number of Previous Candles3int · min 1 · max 50high1 high2 high3 low1 low2 low3

What it calculates

  • Highesthigh, Number of Previous Candles (3)high1 · line 8
  • Highesthigh, Number of Previous Candles (3)high2 · line 9
  • Highesthigh, Number of Previous Candles (3)high3 · line 10
  • Lowestlow, Number of Previous Candles (3)low1 · line 11
  • Lowestlow, Number of Previous Candles (3)low2 · line 12
  • Lowestlow, Number of Previous Candles (3)low3 · line 13

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.

highhighprice dataiPrevCandlesNumber of Previous Cand…setting · 3lowlowprice dataclosecloseprice datahigh1Highest→ high1high2Highest→ high2high3Highest→ high3low1Lowest→ low1low2Lowest→ low2low3Lowest→ low3retracePriceretracePricevaluebullishBreakoutbullishBreakoutconditionbearishBreakoutbearishBreakoutconditionentry:BuyOpen Buystrategy.entryentry:SellOpen Sellstrategy.entryplotshape:19plotshapeplotshapeplotshape:20plotshapeplotshape

Order rules

OrderFires whenBy defaultLine
Open Buy longbullishBreakout and strategy.position_size <= 3On25
Open Sell shortbearishBreakout and strategy.position_size <= 3On27

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.

24/24trades 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−3.2%+102.5%8847%0.848.2%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h+1.7%+5.5%9650%1.351.2%8 May 2026 – 21 Oct 2026
ETHUSDT 1D−0.4%+9.8%9137%0.650.7%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h+0.1%+8.4%9049%1.570.0%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−0.0%+16.7%9246%0.810.0%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+0.0%+21.5%8852%1.790.0%8 May 2026 – 21 Oct 2026
BNBUSDT 1D−0.0%+148.3%9242%0.980.0%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h+0.0%+17.1%9053%1.330.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 market3033%$1,460.49
Sideways market3554%−$6,362.60
Falling market2352%−$26,685.90

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

How bad could the drawdown be?

9.8%

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

0%11%
All 88 trades
SideEntryExitBarsP&L
long13 Feb 2024 48,567.4020 Mar 2024 65,255.5036$16,688.10
short20 Mar 2024 65,255.502 Apr 2024 67,075.0013−$1,819.50
long2 Apr 2024 67,075.004 Apr 2024 67,958.002$883.00
short4 Apr 2024 67,958.009 Apr 2024 70,122.905−$2,164.91
long9 Apr 2024 70,122.9015 Apr 2024 65,983.206−$4,139.68
short15 Apr 2024 65,983.2024 Apr 2024 65,161.209$822.02
long24 Apr 2024 65,161.203 May 2024 60,643.409−$4,517.80
short3 May 2024 60,643.409 May 2024 60,725.906−$82.51
long9 May 2024 60,725.9012 Jun 2024 68,123.5034$7,397.55
short12 Jun 2024 68,123.503 Jul 2024 61,560.9021$6,562.59
long3 Jul 2024 61,560.906 Jul 2024 57,885.903−$3,674.94
short6 Jul 2024 57,885.9023 Jul 2024 65,833.7017−$7,947.72
long23 Jul 2024 65,833.7026 Jul 2024 66,792.803$959.12
short26 Jul 2024 66,792.8030 Jul 2024 65,828.404$964.43
long30 Jul 2024 65,828.406 Aug 2024 55,599.107−$10,229.20
short6 Aug 2024 55,599.1011 Aug 2024 58,347.605−$2,748.46
long11 Aug 2024 58,347.6016 Aug 2024 58,939.305$591.70
short16 Aug 2024 58,939.3027 Aug 2024 61,869.2011−$2,929.96
long27 Aug 2024 61,869.202 Sep 2024 58,572.506−$3,296.69
short2 Sep 2024 58,572.5011 Sep 2024 55,858.509$2,714.04
long11 Sep 2024 55,858.507 Oct 2024 63,120.1026$7,261.56
short7 Oct 2024 63,120.1021 Oct 2024 68,296.2014−$5,176.12
long21 Oct 2024 68,296.205 Nov 2024 69,555.8015$1,259.66
short5 Nov 2024 69,555.8014 Nov 2024 86,740.809−$17,185.00
long14 Nov 2024 86,740.8027 Nov 2024 94,831.4013$8,090.63
short27 Nov 2024 94,831.402 Dec 2024 95,206.105−$374.61
long2 Dec 2024 95,206.1031 Dec 2024 93,632.2029−$1,573.84
short31 Dec 2024 93,632.207 Jan 2025 99,878.407−$6,246.17
long7 Jan 2025 99,878.4015 Jan 2025 97,612.608−$2,265.75
short15 Jan 2025 97,612.6019 Jan 2025 101,183.004−$3,569.97
long19 Jan 2025 101,183.0028 Jan 2025 102,083.009$900.22
short28 Jan 2025 102,083.0021 Feb 2025 96,049.7024$6,033.11
long21 Feb 2025 96,049.702 Mar 2025 89,378.009−$6,671.71
short2 Mar 2025 89,378.003 Mar 2025 86,629.301$2,748.75
long3 Mar 2025 86,629.3011 Mar 2025 82,178.608−$4,450.68
short11 Mar 2025 82,178.6020 Mar 2025 84,067.309−$1,888.75
long20 Mar 2025 84,067.301 Apr 2025 84,700.6012$633.27
short1 Apr 2025 84,700.602 Apr 2025 83,429.001$1,271.61
long2 Apr 2025 83,429.007 Apr 2025 80,936.905−$2,492.07
short7 Apr 2025 80,936.904 May 2025 95,167.0027−$14,230.10
long4 May 2025 95,167.003 Jun 2025 106,453.0030$11,285.80
short3 Jun 2025 106,453.0012 Jun 2025 107,201.009−$747.78
long12 Jun 2025 107,201.0023 Jun 2025 103,681.0011−$3,519.35
short23 Jun 2025 103,681.0030 Jun 2025 107,443.007−$3,761.35
long30 Jun 2025 107,443.002 Jul 2025 107,020.002−$422.21
short2 Jul 2025 107,020.004 Jul 2025 107,415.002−$394.67
long4 Jul 2025 107,415.004 Aug 2025 115,463.0031$8,047.64
short4 Aug 2025 115,463.0014 Aug 2025 120,859.0010−$5,396.22
long14 Aug 2025 120,859.0019 Aug 2025 116,608.005−$4,251.38
short19 Aug 2025 116,608.0024 Aug 2025 114,557.005$2,050.65
long24 Aug 2025 114,557.0028 Aug 2025 113,152.004−$1,404.87
short28 Aug 2025 113,152.004 Sep 2025 109,513.007$3,638.79
long4 Sep 2025 109,513.0028 Sep 2025 111,286.0024$1,772.50
short28 Sep 2025 111,286.0010 Oct 2025 118,931.0012−$7,645.07
long10 Oct 2025 118,931.0011 Oct 2025 113,099.001−$5,832.20
short11 Oct 2025 113,099.0021 Oct 2025 108,904.0010$4,194.17
long21 Oct 2025 108,904.002 Nov 2025 111,195.0012$2,290.71
short2 Nov 2025 111,195.0011 Nov 2025 104,035.009$7,160.12
long11 Nov 2025 104,035.0023 Nov 2025 86,880.0012−$17,155.10
short23 Nov 2025 86,880.0025 Nov 2025 86,364.002$516.00
long25 Nov 2025 86,364.002 Dec 2025 87,911.407$1,547.39
short2 Dec 2025 87,911.405 Dec 2025 88,986.403−$1,074.99
long5 Dec 2025 88,986.4016 Dec 2025 87,890.6011−$1,095.78
short16 Dec 2025 87,890.606 Jan 2026 92,051.5021−$4,160.94
long6 Jan 2026 92,051.5026 Jan 2026 88,649.9020−$3,401.68
short26 Jan 2026 88,649.9016 Feb 2026 67,839.0021$20,810.90
long16 Feb 2026 67,839.0020 Feb 2026 67,998.304$159.34
short20 Feb 2026 67,998.303 Mar 2026 66,563.0011$1,435.34
long3 Mar 2026 66,563.009 Mar 2026 68,519.206$1,956.24
short9 Mar 2026 68,519.2018 Mar 2026 72,613.009−$4,093.80
long18 Mar 2026 72,613.0023 Mar 2026 69,363.805−$3,249.21
short23 Mar 2026 69,363.802 Apr 2026 66,794.7010$2,569.09
long2 Apr 2026 66,794.7029 Apr 2026 77,576.1027$10,781.40
short29 Apr 2026 77,576.107 May 2026 79,937.808−$2,361.65
long7 May 2026 79,937.8014 May 2026 80,567.307$629.55
short14 May 2026 80,567.3017 Jun 2026 65,355.4034$15,211.90
long17 Jun 2026 65,355.4022 Jun 2026 64,632.005−$723.36
short22 Jun 2026 64,632.006 Jul 2026 62,623.9014$2,008.11
long6 Jul 2026 62,623.9014 Jul 2026 63,164.508$540.61
short14 Jul 2026 63,164.5017 Jul 2026 63,462.503−$297.94
long17 Jul 2026 63,462.5026 Jul 2026 65,239.809$1,777.34
short26 Jul 2026 65,239.8011 Aug 2026 63,662.6016$1,577.21
long11 Aug 2026 63,662.6012 Aug 2026 64,356.201$693.62
short12 Aug 2026 64,356.204 Sep 2026 79,282.0023−$14,925.80
long4 Sep 2026 79,282.009 Sep 2026 79,090.005−$192.00
short9 Sep 2026 79,090.0023 Sep 2026 83,760.9014−$4,670.85
long23 Sep 2026 83,760.9011 Oct 2026 83,546.3018−$214.57
short11 Oct 2026 83,546.3012 Oct 2026 82,901.301$645.02

Similar scripts

Indicators and strategies built from the same calculations, run on BTCUSDT 1D with their own defaults so they can be compared directly.

ScriptSharesTypeNetTradesMax drawdown
Striker Play this page—v5 strategy−3.2%888.2%
Alex Days HiLo Rajib by 14rajibhighest lowestv4 strategyNo trades on this market
Donchian Strat EXMO by pskoroplashighest lowestv4 strategy+12.1%2268.0%
Average Highest High and Lowest Low Swinger Strategy by exlux99lowest highestv4 strategy+6.4%2049.6%
Highest High and Lowest Low Channel Strategy by ceyhunhighest lowestv5 strategy−3.7%267.9%
Donchian Channels System [racer8] by racer8highest lowestv4 strategy−3.2%3643.6%

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: 88 before, 112 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.

⋯// © RickyCadan-//@version=5+//@version=6strategy("Striker Play", overlay=true)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 13 msYes 1,000 bars in 24 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/// © RickyCadan//@version=5strategy("Striker Play", overlay=true)// Define the input for the number of previous candles to useiPrevCandles = input.int(defval=3, title="Number of Previous Candles", minval=1, maxval=50)// Calculate the high and low of the previous candleshigh1 = ta.highest(high, iPrevCandles)high2 = ta.highest(high, iPrevCandles)[1]high3 = ta.highest(high, iPrevCandles)[2]low1 = ta.lowest(low, iPrevCandles)low2 = ta.lowest(low, iPrevCandles)[1]low3 = ta.lowest(low, iPrevCandles)[2]// Determine if a bullish breakout occurredbullishBreakout = close > high2 and high3// Determine if a bearish breakout occurredbearishBreakout = close < low2 and low3// Plot buy and sell signalsplotshape(series=bullishBreakout ? 1 : 0, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="Buy", textcolor = color.green)plotshape(series=bearishBreakout ? 1 : 0, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="Sell", textcolor = color.red)// Calculate the 50% retracement of the breakout candleretracePrice = bullishBreakout ? (high1 + low1) / 2 : bearishBreakout ? (high1 + low1) / 2 : na// Enter limit orders at the 50% retracement of the breakout candleif bullishBreakout and strategy.position_size <= 3    strategy.entry("Buy", strategy.long, limit=retracePrice, comment="Buy Limit")if bearishBreakout and strategy.position_size <= 3    strategy.entry("Sell", strategy.short, limit=retracePrice, comment="Sell Limit")