NEWCard payments are live · from $18/month, USDT also acceptedSee plans
COINPRED / STRATEGY LIBRARY

BTC Connors RSI: Go long when 2-period RSI leaves oversold, close is above the 200 SMA and still below the 10 SMA, then exit when close is back above that fast average

JoseMetal's open-source mean-reversion script (MPL 2.0), published as "Estrategia Larry Connors [JoseMetal]". Both sides are on by default. A long needs close above the 200-period average, 2-period RSI just leaving oversold (default 5), and close still below the 10-period average; it exits when close is back above that fast average. Shorts are the mirror. ATR stops stay off by default. The author's chart is BINANCE:BTCUSDC, 4-hour. Rules follow the source; this page invents no backtest figures.

Illustrated guidesPine Script®Included with monthly & annual plans
← All strategies
JoseMetal · 4.0 · 2026-12-02 · Mean reversion
BTC Connors RSI: Go long when 2-period RSI leaves oversold, close is above the 200 SMA and still below the 10 SMA, then exit when close is back above that fast average

The idea

This is JoseMetal's open-source script, published as "Estrategia Larry Connors [JoseMetal]". The script title itself is "Larry Connors Strategy [JoseMetal]". It follows a short-period RSI mean-reversion approach in the spirit of Larry Connors: a slow average sets the direction, a 2-period RSI has to leave an extreme, and the close still has to sit on the 'wrong' side of a fast average before a trade is opened. The trade then exits when the close returns through that fast average. Both sides are enabled by default.

The source comments state that this Connors-style setup does not use a fixed stop or take-profit, and that adding one would drag results. The script still includes optional ATR stop, target, and break-even inputs, but all three are off by default. The author's published chart is BINANCE:BTCUSDC on the 4-hour timeframe, so this page lists it as a BTC strategy. The script does not hard-code a symbol. The input labels are in Spanish.

JoseMetal's Connors RSI strategy on the BINANCE:BTCUSDC 4-hour chart
Author chart: BINANCE:BTCUSDC, 4-hour, from the script's publication page. The image shows the fast and slow averages and trade markers. It is only a visual example, not a performance record.

How the lines are built

  • The exit average (Media de salida) defaults to a 10-period SMA of close, and can be switched to EMA, WMA, or HMA. A long exits when close is above this line; a short exits when close is no longer above it.
  • The trend average (Media de tendencia) defaults to a 200-period SMA of close, with the same type choices. Close above it is treated as an uptrend; otherwise it is a downtrend. The source uses close > average, so a close exactly at the average is not an uptrend.
  • RSI defaults to close with length 2. Oversold defaults to 5 and overbought to 95. The script treats an exit from an extreme as 'the previous bar was inside the zone, and this bar is not'.
  • ATR defaults to length 7. Optional stops, targets, and break-even levels are ATR times a multiplier, then added to or subtracted from an ATR reference price. That reference defaults to close and is only used to place those levels; it is not used in the ATR calculation itself.
  • The default test start is input.time(0), which is effectively the start of the chart. The end-date option is off by default.

Entry rules

  • Both longs and shorts are allowed by default. A new order requires that the same-side position is not already open; the source checks not LONG_abierto / not SHORT_abierto, and pyramiding is 0.
  • A long needs all of these: close above the trend average; close not above the exit average (still at or below the fast line); the previous RSI below the oversold threshold, and the current RSI no longer below it. The bar also has to fall inside the test window.
  • A short is the mirror: close not above the trend average; close above the exit average; the previous RSI above the overbought threshold, and the current RSI no longer above it.
  • If the ATR stop, target, or break-even switch is on, the script stores those prices from the reference and ATR at the moment of entry, then writes them into strategy.exit. By default all three are off, so both stop and limit are na.

Exits and position size

  • The default exit is not a stop order: a long is flattened when close is above the exit average; a short is flattened when close is no longer above that average.
  • If "¿Usar Stop Loss?" is on, the long stop is the reference price minus ATR times the multiplier (default 3.1), and the short stop is the reference plus the same distance. The take-profit path is the same idea in the opposite direction, and is also off by default.
  • If break-even is on, a close that reaches the trigger level (default reference plus or minus 1.0 ATR) moves the stop to the break-even price (default reference plus or minus 0.8 ATR) and resubmits strategy.exit. This is off by default.
  • Orders are 10% of equity, with initial capital 10,000 and a 0% commission. That 0% figure is only a tester setting; it is not an exchange fee schedule.
  • The script paints oversold bars bright green and overbought bars bright red; with "Marcar velas neutrales" on, the other bars are black. Those colors are visual only and do not change the entry or exit tests.

Inputs (defaults in the source)

InputDefaultWhat it does
¿LONGS? / ¿SHORTS?true / trueWhether longs and shorts are allowed
Exit average type / source / lengthSMA / close / 10Fast-line filter at entry, and the default exit
Trend average type / source / lengthSMA / close / 200Uptrend versus downtrend
RSI source / lengthclose / 2Short RSI; 2 is the length often used in Connors-style setups
Oversold / overbought5 / 95The third entry condition is a just-completed exit from these zones
¿Usar Stop Loss? / multiplierfalse / 3.1Optional ATR stop, off by default
¿Usar Take Profit? / multiplierfalse / 3.1Optional ATR target, off by default
Break-even switch / trigger / levelfalse / 1.0 / 0.8Optional break-even, off by default
ATR reference / lengthclose / 7The reference only places stop and target levels; it is not used in ATR itself
Test start / use end date0 (about 1970-01-01) / falseDefaults to the full chart history through the latest bar

Caveats

  • A 2-period RSI is very sensitive, even on a 4-hour chart, and will spend a lot of time in oversold or overbought territory. The fast-average exit can also be hit quickly.
  • There is no fixed stop by default. If the trend turns suddenly, the trade waits for a close back through the 10-period average.
  • Commission is set to 0%. Live fee schedules, contract multipliers, and quote currencies often differ, so tester results are not exchange fills.
  • The author showed 4-hour BTCUSDC, and the average lengths are set with that timeframe in mind. The same defaults may not fit a much shorter timeframe or a different quote.
  • Optional break-even moves the stop to the reference plus or minus 0.8 ATR, which is not necessarily the average entry price. Read that level from the source rather than from the name alone.

Install it on TradingView

  1. Download the .pine file from Coinpred (a current membership is required; see the page) or check the original publication for a newer revision.
  2. Open the symbol and timeframe you want in TradingView, open the Pine Editor, paste the source, and add it to the chart.
  3. Start with the defaults so you can see the entries and exits, then change the averages, RSI thresholds, and whether an ATR stop is on for your market and timeframe.
  4. The order size, capital, and commission in the source apply to the strategy tester only. Live order routing has to be set separately.
  5. Crypto trades around the clock. The tester's timezone and session settings may differ from your venue by several hours.

About backtest figures

Source, license, and version

  • Source: https://www.tradingview.com/script/H4ciolWP/
  • Author: JoseMetal (header © JoseMetal)
  • License: Mozilla Public License 2.0. Redistribution must keep the original copyright and license notices; if you modify the source file, the modified file must remain under MPL 2.0. Coinpred ships the unmodified source.
  • Version: 4.0 in the publication record and pine-facade. scriptAccess is open_no_auth.

Source, license and version

Licensed under MPL 2.0 per the source header, © JoseMetal. Redistribution must keep the copyright and license notices; modified files must remain under MPL 2.0. Coinpred ships the unmodified source.

View original source ↗

Check the script license and your TradingView account features. Historical results do not guarantee future performance.

More strategies

All strategies →