Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

I11L - Reversal Trading Ideas by Larry Connors

A Pine Script v5 strategy with no technical-analysis calculation. It has 2 order rules, 1 entry among them, and trades long only with the default settings. Exits use a profit target and no stop loss. Each trade commits 10000 in cash and pays no commission. 4 settings; defaults include Lowest Point Bars 7, RSI Length 2 and Sell Barrier 70.

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 I11L - Reversal Trading Ideas by Larry Connors repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 36 of 36 trades.
How did I11L - Reversal Trading Ideas by Larry Connors do on BTCUSDT 1D with default settings?
+101.67%
From 26 Jan 2024 to 21 Oct 2026, over 119 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Does I11L - Reversal Trading Ideas by Larry Connors 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: 119 before, 9 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 I11L - Reversal Trading Ideas by Larry Connors use a stop loss?
No
Its exits set a profit target but no stop.
Does I11L - Reversal Trading Ideas by Larry Connors run in Zeal Terminal?
Yes
It compiles in 11 ms and runs 1,000 bars in 27 ms, in the browser.

BTCUSDT · 1D · default settings

  • 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 (4)
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOctPlot$20,166$20,253Equity from $10,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
+101.67%
$10,167.20
Buy and hold
+102.5%
same period
Closed trades
119
88 won · 31 lost
Profitable
73.9%
of closed trades
Profit factor
1.63
gross profit ÷ gross loss
Max drawdown
58.79%
−$8,737.67

One run with the author's default settings, $10,000 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

    No stop loss

    strategy.exit is used without a stop, loss or trailing stop.

  • Check

    No commission

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

  • Note

    4 settings have no label

    In the settings dialog lowestPointBars (line 5), rsiLength (line 6), sellBarrier (line 7), onlyBuyWhenAbove55Average (line 8) show an empty name. The labels on this page come from the variable names.

  • 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
Lowest Point Bars (no label in the script)7intisLowest
RSI Length (no label in the script)2intisHighest plot
Sell Barrier (no label in the script)70int · step 55isHighest plot
Only Buy When Above55Average (no label in the script)falseboolisBuy

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.

closecloseprice datalowestPointBarsLowest Point Barssetting · 7rsiLengthRSI Lengthsetting · 2sellBarrierSell Barriersetting · 70isCloseisClosevalueisBuyisBuyconditionisLowestisLowestconditionisHighestisHighestconditionentry:"Buy"+str.tostring(strategy.opentrades+1)Open "Buy"+str.tostring…strategy.entryexit:Closeexit Closestrategy.exitplot:13plotplotplot:14plotplot

Order rules

OrderFires whenBy defaultLine
Open "Buy"+str.tostring(strategy.opentrades+1) long(isBuy)On16
Exit Close limit(isClose)On18

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.

36/36trades 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+101.7%+102.5%11974%1.6358.8%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h−17.5%+5.5%9369%0.7657.0%8 May 2026 – 21 Oct 2026
ETHUSDT 1D+109.9%+9.8%12167%1.4064.8%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h+8.2%+8.4%10470%1.0954.5%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−74.0%+16.7%11553%0.81101.5%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h−5.7%+21.5%10966%0.9566.1%8 May 2026 – 21 Oct 2026
BNBUSDT 1D+149.8%+148.3%11469%1.9651.5%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h−16.9%+17.1%8869%0.7957.7%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 market4283%$9,590.68
Sideways market4464%−$672.35
Falling market3376%$1,248.84

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

How bad could the drawdown be?

22.7%

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

0%32%
All 119 trades
SideEntryExitBarsP&L
long22 Feb 2024 51,288.4025 Feb 2024 51,728.803$85.87
long16 Mar 2024 65,300.6024 Mar 2024 67,210.008$292.39
long19 Mar 2024 61,937.4024 Mar 2024 67,210.005$851.28
long2 Apr 2024 65,464.006 Apr 2024 68,896.004$524.26
long12 Apr 2024 67,116.5020 Apr 2024 64,940.608−$324.20
long13 Apr 2024 63,924.5020 Apr 2024 64,940.607$158.95
long15 Apr 2024 63,420.0020 Apr 2024 64,940.605$239.77
long26 Apr 2024 63,770.003 May 2024 62,882.007−$139.25
long30 Apr 2024 60,672.003 May 2024 62,882.003$364.25
long1 May 2024 58,365.003 May 2024 62,882.002$773.93
long10 May 2024 60,800.0013 May 2024 62,940.103$351.99
long29 May 2024 67,652.403 Jun 2024 68,809.905$171.09
long11 Jun 2024 67,314.2030 Jun 2024 62,772.0019−$674.78
long14 Jun 2024 66,044.0030 Jun 2024 62,772.0016−$495.42
long18 Jun 2024 65,175.3030 Jun 2024 62,772.0012−$368.75
long3 Jul 2024 60,208.609 Jul 2024 58,050.006−$358.52
long4 Jul 2024 57,050.009 Jul 2024 58,050.005$175.28
long5 Jul 2024 56,628.809 Jul 2024 58,050.004$250.97
long31 Jul 2024 64,628.008 Aug 2024 61,686.008−$455.22
long2 Aug 2024 61,498.308 Aug 2024 61,686.006$30.51
long3 Aug 2024 60,698.008 Aug 2024 61,686.005$162.77
long14 Aug 2024 58,683.4017 Aug 2024 59,492.003$137.79
long27 Aug 2024 59,415.009 Sep 2024 57,042.0013−$399.39
long1 Sep 2024 57,301.909 Sep 2024 57,042.008−$45.35
long5 Sep 2024 56,180.009 Sep 2024 57,042.004$153.44
long1 Oct 2024 60,805.804 Oct 2024 62,086.003$210.54
long9 Oct 2024 60,636.0011 Oct 2024 62,540.002$314.00
long23 Oct 2024 66,668.6024 Oct 2024 68,198.301$229.44
long3 Nov 2024 68,776.006 Nov 2024 75,572.003$988.14
long26 Nov 2024 91,965.2029 Nov 2024 97,460.003$597.49
long10 Dec 2024 96,593.0011 Dec 2024 101,125.001$469.19
long19 Dec 2024 97,461.9024 Dec 2024 98,663.605$123.30
long22 Dec 2024 95,186.3024 Dec 2024 98,663.602$365.32
long27 Dec 2024 94,299.001 Jan 2025 94,591.805$31.05
long30 Dec 2024 92,792.101 Jan 2025 94,591.802$193.95
long8 Jan 2025 95,060.6014 Jan 2025 96,560.906$157.82
long9 Jan 2025 92,552.5014 Jan 2025 96,560.905$433.09
long27 Jan 2025 102,083.0029 Jan 2025 103,733.002$161.67
long1 Feb 2025 100,636.0010 Feb 2025 97,430.809−$318.46
long2 Feb 2025 97,700.6010 Feb 2025 97,430.808−$27.61
long5 Feb 2025 96,612.4010 Feb 2025 97,430.805$84.71
long11 Feb 2025 95,778.2012 Feb 2025 97,870.001$218.40
long18 Feb 2025 95,671.7019 Feb 2025 96,644.401$101.66
long24 Feb 2025 91,552.902 Mar 2025 94,270.006$296.78
long25 Feb 2025 88,680.402 Mar 2025 94,270.005$630.31
long26 Feb 2025 84,250.102 Mar 2025 94,270.004$1,189.31
long9 Mar 2025 80,734.4015 Mar 2025 84,338.406$446.41
long10 Mar 2025 78,595.9015 Mar 2025 84,338.405$730.65
long29 Mar 2025 82,648.501 Apr 2025 85,158.303$303.67
long6 Apr 2025 78,430.009 Apr 2025 82,615.203$533.63
long8 Apr 2025 76,322.409 Apr 2025 82,615.201$824.50
long29 May 2025 105,590.002 Jun 2025 105,858.004$25.40
long5 Jun 2025 101,509.007 Jun 2025 105,552.002$398.34
long14 Jun 2025 105,415.0016 Jun 2025 106,795.002$130.90
long17 Jun 2025 104,551.0023 Jun 2025 105,334.006$74.87
long20 Jun 2025 103,298.0023 Jun 2025 105,334.003$197.09
long22 Jun 2025 100,964.0023 Jun 2025 105,334.001$432.83
long1 Jul 2025 105,681.002 Jul 2025 108,850.001$299.81
long20 Jul 2025 117,265.0022 Jul 2025 119,954.002$229.34
long31 Jul 2025 115,764.004 Aug 2025 115,055.004−$61.25
long1 Aug 2025 113,298.004 Aug 2025 115,055.003$155.09
long18 Aug 2025 116,227.0022 Aug 2025 116,936.004$61.00
long19 Aug 2025 112,873.0022 Aug 2025 116,936.003$359.97
long25 Aug 2025 110,112.002 Sep 2025 111,240.008$102.44
long29 Aug 2025 108,377.002 Sep 2025 111,240.004$264.13
long21 Sep 2025 115,232.0028 Sep 2025 112,164.007−$266.27
long23 Sep 2025 111,999.0028 Sep 2025 112,164.005$14.75
long25 Sep 2025 108,994.0028 Sep 2025 112,164.003$290.79
long10 Oct 2025 112,775.0020 Oct 2025 110,532.0010−$198.84
long11 Oct 2025 110,644.0020 Oct 2025 110,532.009−$10.15
long16 Oct 2025 108,194.0020 Oct 2025 110,532.004$216.07
long29 Oct 2025 110,021.002 Nov 2025 110,541.004$47.21
long3 Nov 2025 106,583.009 Nov 2025 104,723.006−$174.52
long4 Nov 2025 101,497.009 Nov 2025 104,723.005$317.82
long6 Nov 2025 101,346.009 Nov 2025 104,723.003$333.21
long13 Nov 2025 99,692.0024 Nov 2025 88,300.0011−$1,142.72
long14 Nov 2025 94,594.0024 Nov 2025 88,300.0010−$665.37
long16 Nov 2025 94,261.4024 Nov 2025 88,300.008−$632.44
long1 Dec 2025 86,286.003 Dec 2025 93,429.902$827.94
long13 Dec 2025 90,240.0019 Dec 2025 88,136.906−$233.05
long15 Dec 2025 86,432.1019 Dec 2025 88,136.904$197.25
long17 Dec 2025 86,243.2019 Dec 2025 88,136.902$219.58
long25 Dec 2025 87,225.3027 Dec 2025 87,877.002$74.72
long10 Jan 2026 90,504.7012 Jan 2026 91,296.202$87.45
long19 Jan 2026 92,631.0027 Jan 2026 89,250.008−$365.00
long20 Jan 2026 88,427.7027 Jan 2026 89,250.007$93.00
long25 Jan 2026 86,670.4027 Jan 2026 89,250.002$297.64
long29 Jan 2026 84,650.2013 Feb 2026 68,854.0015−$1,866.06
long31 Jan 2026 78,741.1013 Feb 2026 68,854.0013−$1,255.65
long1 Feb 2026 76,968.2013 Feb 2026 68,854.0012−$1,054.23
long23 Feb 2026 64,656.0025 Feb 2026 67,988.002$515.35
long8 Mar 2026 65,971.2010 Mar 2026 69,948.602$602.90
long19 Mar 2026 69,930.0023 Mar 2026 70,906.404$139.63
long22 Mar 2026 67,859.0023 Mar 2026 70,906.401$449.09
long27 Mar 2026 66,407.3031 Mar 2026 68,284.504$282.68
long19 Apr 2026 73,801.8021 Apr 2026 76,336.102$343.40
long28 Apr 2026 76,342.801 May 2026 78,231.103$247.35
long13 May 2026 79,313.6025 May 2026 77,322.0012−$251.10
long16 May 2026 78,148.1025 May 2026 77,322.009−$105.70
long22 May 2026 75,539.5025 May 2026 77,322.003$235.97
long27 May 2026 74,449.3011 Jun 2026 63,626.0015−$1,453.78
long28 May 2026 73,617.5011 Jun 2026 63,626.0014−$1,357.22
long1 Jun 2026 71,408.9011 Jun 2026 63,626.0010−$1,089.91
long18 Jun 2026 62,958.002 Jul 2026 61,560.0014−$222.05
long24 Jun 2026 61,078.002 Jul 2026 61,560.008$78.92
long25 Jun 2026 59,794.002 Jul 2026 61,560.007$295.35
long24 Jul 2026 64,140.0026 Jul 2026 65,400.002$196.44
long27 Jul 2026 63,755.9030 Jul 2026 64,780.003$160.64
long31 Jul 2026 62,887.904 Aug 2026 64,106.604$193.79
long10 Aug 2026 63,970.0017 Aug 2026 64,532.107$87.87
long16 Aug 2026 62,900.0017 Aug 2026 64,532.101$259.48
long30 Aug 2026 77,682.003 Sep 2026 81,270.404$461.93
long9 Sep 2026 78,306.4014 Sep 2026 78,189.205−$14.97
long10 Sep 2026 76,568.7014 Sep 2026 78,189.204$211.64
long15 Sep 2026 75,644.5018 Sep 2026 80,883.903$692.63
long28 Sep 2026 83,500.001 Oct 2026 84,880.103$165.27
long7 Oct 2026 83,321.8011 Oct 2026 83,773.104$54.16
long8 Oct 2026 81,754.4011 Oct 2026 83,773.103$246.92
long14 Oct 2026 81,682.0020 Oct 2026 83,028.106$164.80

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
I11L - Reversal Trading Ideas by Larry Connors this page—v5 strategy+101.7%11958.8%
Exponential Stochastic Strategy by faytterrolowestv5 strategy+64.1%8542.2%
Scalping Support Resistance Strategy by HPotterlowestv5 strategydoes not run in Zeal Terminal
STRATEGY TESTER ENGINE - ON CHART DISPLAY - PLUG & PLAY by FiatDropoutlowestv4 strategy+496.9%997732.3%
Alex Days HiLo Rajib by 14rajiblowestv4 strategyNo trades on this market
Donchian Strat EXMO by pskoroplaslowestv4 strategy+12.1%2268.0%

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: 119 before, 9 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.

⋯// © I11L-//@version=5+//@version=6strategy("I11L - Reversal Trading Ideas by Larry Connors", overlay=false, pyramiding=3, default_qty_value=10000, initial_capital=10000, default_qty_type=strategy.cash,process_orders_on_close=true, calc_on_every_tick=false)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 11 msYes 1,000 bars in 27 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/// © I11L//@version=5strategy("I11L - Reversal Trading Ideas by Larry Connors", overlay=false, pyramiding=3, default_qty_value=10000, initial_capital=10000, default_qty_type=strategy.cash,process_orders_on_close=true, calc_on_every_tick=false)lowestPointBars = input.int(7)rsiLength = input.int(2)sellBarrier = input.int(70, step=55)onlyBuyWhenAbove55Average = input.bool(false)isLowest = ta.lowest(close,lowestPointBars*(strategy.opentrades+1)) == closeisHighest = ta.rsi(close,rsiLength) > sellBarrierisBuy = isLowest and (strategy.position_avg_price * (1-0.01*strategy.opentrades) > close or strategy.opentrades == 0) and (close > ta.sma(close, 55) or not(onlyBuyWhenAbove55Average))isClose = isHighestplot(ta.rsi(close,rsiLength), color=isBuy ? color.green : isLowest ? color.yellow : color.white)plot(sellBarrier, color=color.red)if(isBuy)    strategy.entry("Buy"+str.tostring(strategy.opentrades+1),strategy.long, comment="#"+str.tostring(strategy.opentrades+1))if(isClose)    strategy.exit("Close",limit=close)