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
- 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.
| Setting | Default | Type and range | Feeds |
|---|---|---|---|
| Lowest Point Bars (no label in the script) | 7 | int | isLowest |
| RSI Length (no label in the script) | 2 | int | isHighest plot |
| Sell Barrier (no label in the script) | 70 | int · step 55 | isHighest plot |
| Only Buy When Above55Average (no label in the script) | false | bool | isBuy |
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.
Order rules
| Order | Fires when | By default | Line |
|---|---|---|---|
| Open "Buy"+str.tostring(strategy.opentrades+1) long | (isBuy) | On | 16 |
| Exit Close limit | (isClose) | On | 18 |
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.
- 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.
| Market | Net | Buy and hold | Trades | Won | Profit factor | Max drawdown | Period |
|---|---|---|---|---|---|---|---|
| BTCUSDT 1D | +101.7% | +102.5% | 119 | 74% | 1.63 | 58.8% | 26 Jan 2024 – 21 Oct 2026 |
| BTCUSDT 4h | −17.5% | +5.5% | 93 | 69% | 0.76 | 57.0% | 8 May 2026 – 21 Oct 2026 |
| ETHUSDT 1D | +109.9% | +9.8% | 121 | 67% | 1.40 | 64.8% | 26 Jan 2024 – 21 Oct 2026 |
| ETHUSDT 4h | +8.2% | +8.4% | 104 | 70% | 1.09 | 54.5% | 8 May 2026 – 21 Oct 2026 |
| SOLUSDT 1D | −74.0% | +16.7% | 115 | 53% | 0.81 | 101.5% | 26 Jan 2024 – 21 Oct 2026 |
| SOLUSDT 4h | −5.7% | +21.5% | 109 | 66% | 0.95 | 66.1% | 8 May 2026 – 21 Oct 2026 |
| BNBUSDT 1D | +149.8% | +148.3% | 114 | 69% | 1.96 | 51.5% | 26 Jan 2024 – 21 Oct 2026 |
| BNBUSDT 4h | −16.9% | +17.1% | 88 | 69% | 0.79 | 57.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 bars | Trades | Won | P&L |
|---|---|---|---|
| Rising market | 42 | 83% | $9,590.68 |
| Sideways market | 44 | 64% | −$672.35 |
| Falling market | 33 | 76% | $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.
All 119 trades
| Side | Entry | Exit | Bars | P&L |
|---|---|---|---|---|
| long | 22 Feb 2024 51,288.40 | 25 Feb 2024 51,728.80 | 3 | $85.87 |
| long | 16 Mar 2024 65,300.60 | 24 Mar 2024 67,210.00 | 8 | $292.39 |
| long | 19 Mar 2024 61,937.40 | 24 Mar 2024 67,210.00 | 5 | $851.28 |
| long | 2 Apr 2024 65,464.00 | 6 Apr 2024 68,896.00 | 4 | $524.26 |
| long | 12 Apr 2024 67,116.50 | 20 Apr 2024 64,940.60 | 8 | −$324.20 |
| long | 13 Apr 2024 63,924.50 | 20 Apr 2024 64,940.60 | 7 | $158.95 |
| long | 15 Apr 2024 63,420.00 | 20 Apr 2024 64,940.60 | 5 | $239.77 |
| long | 26 Apr 2024 63,770.00 | 3 May 2024 62,882.00 | 7 | −$139.25 |
| long | 30 Apr 2024 60,672.00 | 3 May 2024 62,882.00 | 3 | $364.25 |
| long | 1 May 2024 58,365.00 | 3 May 2024 62,882.00 | 2 | $773.93 |
| long | 10 May 2024 60,800.00 | 13 May 2024 62,940.10 | 3 | $351.99 |
| long | 29 May 2024 67,652.40 | 3 Jun 2024 68,809.90 | 5 | $171.09 |
| long | 11 Jun 2024 67,314.20 | 30 Jun 2024 62,772.00 | 19 | −$674.78 |
| long | 14 Jun 2024 66,044.00 | 30 Jun 2024 62,772.00 | 16 | −$495.42 |
| long | 18 Jun 2024 65,175.30 | 30 Jun 2024 62,772.00 | 12 | −$368.75 |
| long | 3 Jul 2024 60,208.60 | 9 Jul 2024 58,050.00 | 6 | −$358.52 |
| long | 4 Jul 2024 57,050.00 | 9 Jul 2024 58,050.00 | 5 | $175.28 |
| long | 5 Jul 2024 56,628.80 | 9 Jul 2024 58,050.00 | 4 | $250.97 |
| long | 31 Jul 2024 64,628.00 | 8 Aug 2024 61,686.00 | 8 | −$455.22 |
| long | 2 Aug 2024 61,498.30 | 8 Aug 2024 61,686.00 | 6 | $30.51 |
| long | 3 Aug 2024 60,698.00 | 8 Aug 2024 61,686.00 | 5 | $162.77 |
| long | 14 Aug 2024 58,683.40 | 17 Aug 2024 59,492.00 | 3 | $137.79 |
| long | 27 Aug 2024 59,415.00 | 9 Sep 2024 57,042.00 | 13 | −$399.39 |
| long | 1 Sep 2024 57,301.90 | 9 Sep 2024 57,042.00 | 8 | −$45.35 |
| long | 5 Sep 2024 56,180.00 | 9 Sep 2024 57,042.00 | 4 | $153.44 |
| long | 1 Oct 2024 60,805.80 | 4 Oct 2024 62,086.00 | 3 | $210.54 |
| long | 9 Oct 2024 60,636.00 | 11 Oct 2024 62,540.00 | 2 | $314.00 |
| long | 23 Oct 2024 66,668.60 | 24 Oct 2024 68,198.30 | 1 | $229.44 |
| long | 3 Nov 2024 68,776.00 | 6 Nov 2024 75,572.00 | 3 | $988.14 |
| long | 26 Nov 2024 91,965.20 | 29 Nov 2024 97,460.00 | 3 | $597.49 |
| long | 10 Dec 2024 96,593.00 | 11 Dec 2024 101,125.00 | 1 | $469.19 |
| long | 19 Dec 2024 97,461.90 | 24 Dec 2024 98,663.60 | 5 | $123.30 |
| long | 22 Dec 2024 95,186.30 | 24 Dec 2024 98,663.60 | 2 | $365.32 |
| long | 27 Dec 2024 94,299.00 | 1 Jan 2025 94,591.80 | 5 | $31.05 |
| long | 30 Dec 2024 92,792.10 | 1 Jan 2025 94,591.80 | 2 | $193.95 |
| long | 8 Jan 2025 95,060.60 | 14 Jan 2025 96,560.90 | 6 | $157.82 |
| long | 9 Jan 2025 92,552.50 | 14 Jan 2025 96,560.90 | 5 | $433.09 |
| long | 27 Jan 2025 102,083.00 | 29 Jan 2025 103,733.00 | 2 | $161.67 |
| long | 1 Feb 2025 100,636.00 | 10 Feb 2025 97,430.80 | 9 | −$318.46 |
| long | 2 Feb 2025 97,700.60 | 10 Feb 2025 97,430.80 | 8 | −$27.61 |
| long | 5 Feb 2025 96,612.40 | 10 Feb 2025 97,430.80 | 5 | $84.71 |
| long | 11 Feb 2025 95,778.20 | 12 Feb 2025 97,870.00 | 1 | $218.40 |
| long | 18 Feb 2025 95,671.70 | 19 Feb 2025 96,644.40 | 1 | $101.66 |
| long | 24 Feb 2025 91,552.90 | 2 Mar 2025 94,270.00 | 6 | $296.78 |
| long | 25 Feb 2025 88,680.40 | 2 Mar 2025 94,270.00 | 5 | $630.31 |
| long | 26 Feb 2025 84,250.10 | 2 Mar 2025 94,270.00 | 4 | $1,189.31 |
| long | 9 Mar 2025 80,734.40 | 15 Mar 2025 84,338.40 | 6 | $446.41 |
| long | 10 Mar 2025 78,595.90 | 15 Mar 2025 84,338.40 | 5 | $730.65 |
| long | 29 Mar 2025 82,648.50 | 1 Apr 2025 85,158.30 | 3 | $303.67 |
| long | 6 Apr 2025 78,430.00 | 9 Apr 2025 82,615.20 | 3 | $533.63 |
| long | 8 Apr 2025 76,322.40 | 9 Apr 2025 82,615.20 | 1 | $824.50 |
| long | 29 May 2025 105,590.00 | 2 Jun 2025 105,858.00 | 4 | $25.40 |
| long | 5 Jun 2025 101,509.00 | 7 Jun 2025 105,552.00 | 2 | $398.34 |
| long | 14 Jun 2025 105,415.00 | 16 Jun 2025 106,795.00 | 2 | $130.90 |
| long | 17 Jun 2025 104,551.00 | 23 Jun 2025 105,334.00 | 6 | $74.87 |
| long | 20 Jun 2025 103,298.00 | 23 Jun 2025 105,334.00 | 3 | $197.09 |
| long | 22 Jun 2025 100,964.00 | 23 Jun 2025 105,334.00 | 1 | $432.83 |
| long | 1 Jul 2025 105,681.00 | 2 Jul 2025 108,850.00 | 1 | $299.81 |
| long | 20 Jul 2025 117,265.00 | 22 Jul 2025 119,954.00 | 2 | $229.34 |
| long | 31 Jul 2025 115,764.00 | 4 Aug 2025 115,055.00 | 4 | −$61.25 |
| long | 1 Aug 2025 113,298.00 | 4 Aug 2025 115,055.00 | 3 | $155.09 |
| long | 18 Aug 2025 116,227.00 | 22 Aug 2025 116,936.00 | 4 | $61.00 |
| long | 19 Aug 2025 112,873.00 | 22 Aug 2025 116,936.00 | 3 | $359.97 |
| long | 25 Aug 2025 110,112.00 | 2 Sep 2025 111,240.00 | 8 | $102.44 |
| long | 29 Aug 2025 108,377.00 | 2 Sep 2025 111,240.00 | 4 | $264.13 |
| long | 21 Sep 2025 115,232.00 | 28 Sep 2025 112,164.00 | 7 | −$266.27 |
| long | 23 Sep 2025 111,999.00 | 28 Sep 2025 112,164.00 | 5 | $14.75 |
| long | 25 Sep 2025 108,994.00 | 28 Sep 2025 112,164.00 | 3 | $290.79 |
| long | 10 Oct 2025 112,775.00 | 20 Oct 2025 110,532.00 | 10 | −$198.84 |
| long | 11 Oct 2025 110,644.00 | 20 Oct 2025 110,532.00 | 9 | −$10.15 |
| long | 16 Oct 2025 108,194.00 | 20 Oct 2025 110,532.00 | 4 | $216.07 |
| long | 29 Oct 2025 110,021.00 | 2 Nov 2025 110,541.00 | 4 | $47.21 |
| long | 3 Nov 2025 106,583.00 | 9 Nov 2025 104,723.00 | 6 | −$174.52 |
| long | 4 Nov 2025 101,497.00 | 9 Nov 2025 104,723.00 | 5 | $317.82 |
| long | 6 Nov 2025 101,346.00 | 9 Nov 2025 104,723.00 | 3 | $333.21 |
| long | 13 Nov 2025 99,692.00 | 24 Nov 2025 88,300.00 | 11 | −$1,142.72 |
| long | 14 Nov 2025 94,594.00 | 24 Nov 2025 88,300.00 | 10 | −$665.37 |
| long | 16 Nov 2025 94,261.40 | 24 Nov 2025 88,300.00 | 8 | −$632.44 |
| long | 1 Dec 2025 86,286.00 | 3 Dec 2025 93,429.90 | 2 | $827.94 |
| long | 13 Dec 2025 90,240.00 | 19 Dec 2025 88,136.90 | 6 | −$233.05 |
| long | 15 Dec 2025 86,432.10 | 19 Dec 2025 88,136.90 | 4 | $197.25 |
| long | 17 Dec 2025 86,243.20 | 19 Dec 2025 88,136.90 | 2 | $219.58 |
| long | 25 Dec 2025 87,225.30 | 27 Dec 2025 87,877.00 | 2 | $74.72 |
| long | 10 Jan 2026 90,504.70 | 12 Jan 2026 91,296.20 | 2 | $87.45 |
| long | 19 Jan 2026 92,631.00 | 27 Jan 2026 89,250.00 | 8 | −$365.00 |
| long | 20 Jan 2026 88,427.70 | 27 Jan 2026 89,250.00 | 7 | $93.00 |
| long | 25 Jan 2026 86,670.40 | 27 Jan 2026 89,250.00 | 2 | $297.64 |
| long | 29 Jan 2026 84,650.20 | 13 Feb 2026 68,854.00 | 15 | −$1,866.06 |
| long | 31 Jan 2026 78,741.10 | 13 Feb 2026 68,854.00 | 13 | −$1,255.65 |
| long | 1 Feb 2026 76,968.20 | 13 Feb 2026 68,854.00 | 12 | −$1,054.23 |
| long | 23 Feb 2026 64,656.00 | 25 Feb 2026 67,988.00 | 2 | $515.35 |
| long | 8 Mar 2026 65,971.20 | 10 Mar 2026 69,948.60 | 2 | $602.90 |
| long | 19 Mar 2026 69,930.00 | 23 Mar 2026 70,906.40 | 4 | $139.63 |
| long | 22 Mar 2026 67,859.00 | 23 Mar 2026 70,906.40 | 1 | $449.09 |
| long | 27 Mar 2026 66,407.30 | 31 Mar 2026 68,284.50 | 4 | $282.68 |
| long | 19 Apr 2026 73,801.80 | 21 Apr 2026 76,336.10 | 2 | $343.40 |
| long | 28 Apr 2026 76,342.80 | 1 May 2026 78,231.10 | 3 | $247.35 |
| long | 13 May 2026 79,313.60 | 25 May 2026 77,322.00 | 12 | −$251.10 |
| long | 16 May 2026 78,148.10 | 25 May 2026 77,322.00 | 9 | −$105.70 |
| long | 22 May 2026 75,539.50 | 25 May 2026 77,322.00 | 3 | $235.97 |
| long | 27 May 2026 74,449.30 | 11 Jun 2026 63,626.00 | 15 | −$1,453.78 |
| long | 28 May 2026 73,617.50 | 11 Jun 2026 63,626.00 | 14 | −$1,357.22 |
| long | 1 Jun 2026 71,408.90 | 11 Jun 2026 63,626.00 | 10 | −$1,089.91 |
| long | 18 Jun 2026 62,958.00 | 2 Jul 2026 61,560.00 | 14 | −$222.05 |
| long | 24 Jun 2026 61,078.00 | 2 Jul 2026 61,560.00 | 8 | $78.92 |
| long | 25 Jun 2026 59,794.00 | 2 Jul 2026 61,560.00 | 7 | $295.35 |
| long | 24 Jul 2026 64,140.00 | 26 Jul 2026 65,400.00 | 2 | $196.44 |
| long | 27 Jul 2026 63,755.90 | 30 Jul 2026 64,780.00 | 3 | $160.64 |
| long | 31 Jul 2026 62,887.90 | 4 Aug 2026 64,106.60 | 4 | $193.79 |
| long | 10 Aug 2026 63,970.00 | 17 Aug 2026 64,532.10 | 7 | $87.87 |
| long | 16 Aug 2026 62,900.00 | 17 Aug 2026 64,532.10 | 1 | $259.48 |
| long | 30 Aug 2026 77,682.00 | 3 Sep 2026 81,270.40 | 4 | $461.93 |
| long | 9 Sep 2026 78,306.40 | 14 Sep 2026 78,189.20 | 5 | −$14.97 |
| long | 10 Sep 2026 76,568.70 | 14 Sep 2026 78,189.20 | 4 | $211.64 |
| long | 15 Sep 2026 75,644.50 | 18 Sep 2026 80,883.90 | 3 | $692.63 |
| long | 28 Sep 2026 83,500.00 | 1 Oct 2026 84,880.10 | 3 | $165.27 |
| long | 7 Oct 2026 83,321.80 | 11 Oct 2026 83,773.10 | 4 | $54.16 |
| long | 8 Oct 2026 81,754.40 | 11 Oct 2026 83,773.10 | 3 | $246.92 |
| long | 14 Oct 2026 81,682.00 | 20 Oct 2026 83,028.10 | 6 | $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.
| Script | Shares | Type | Net | Trades | Max drawdown |
|---|---|---|---|---|---|
| I11L - Reversal Trading Ideas by Larry Connors this page | — | v5 strategy | +101.7% | 119 | 58.8% |
| Exponential Stochastic Strategy by faytterro | lowest | v5 strategy | +64.1% | 85 | 42.2% |
| Scalping Support Resistance Strategy by HPotter | lowest | v5 strategy | does not run in Zeal Terminal | ||
| STRATEGY TESTER ENGINE - ON CHART DISPLAY - PLUG & PLAY by FiatDropout | lowest | v4 strategy | +496.9% | 997 | 732.3% |
| Alex Days HiLo Rajib by 14rajib | lowest | v4 strategy | No trades on this market | ||
| Donchian Strat EXMO by pskoroplas | lowest | v4 strategy | +12.1% | 22 | 68.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
VerifiedNothing 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
| Engine | Compiles | Runs | Matches TradingView |
|---|---|---|---|
| Zeal Terminal · OpenPineScript v2 | Yes 11 ms | Yes 1,000 bars in 27 ms | Not measured |
| PineTS | Not tested | Not tested | Not 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)