RSI 2 strategy

On ES futures from January 2016 to July 2026, the RSI 2 strategy made $54,976 after costs and made money in 8 of 11 years.

Mean reversionSwingDaily barsBacktested Nov 6, 2026

RSI 2 backtest, the result

Contract

E-mini S&P 500

  • +$55K

    Net after costs

    After $1,286 in fees and slippage

  • 8 of 11

    Years that made money

    January 2016 to July 2026

  • −$27.9K

    Largest drawdown

    Peak to trough, 1 contract

  • $1.2K

    Average trade

    45 trades

RSI 2 on ES, net after costs by month, from January 2016 to July 2026: +$54,976; buying and holding one ES contract: +$236,212

Net after costs by month, January 2016 to July 2026.

RSI 2 rules

In an uptrend, buy when the 2-day RSI drops below 5, and sell at the first close above the 5-day average.

A drawing of the rules on a made-up day, not a result.

  1. When a CME trading day closes above its 200-day simple average and the two-day RSI is below 5, the strategy buys one contract.
  2. It sells when a day closes above its 5-day simple average.
  3. Long only, with no stop.
From
Larry Connors and Cesar Alvarez, Short Term Trading Strategies That Work
Decides on
Daily bars
Holds
Overnight and across days
Parameters
trend 200, exit 5, entry rsi 5

Results by year

It made money in 8 of 11 years on ES. Its best year was 2024, +$22,590, and its worst 2018, −$10,133.

Net after costs by year on ES, with trades, win rate, largest drawdown and buying and holding the same contract
YearNetTradesWin rateDrawdownBuy and hold
2016+$1,2971100%−$1,375+$11,497
2017+$2,8614100%−$1,900+$21,936
2018−$10,133650%−$16,514−$8,589
2019+$193250%−$9,162+$35,436
2020−$2,726475%−$20,287+$27,761
2021+$18,8955100%−$4,550+$51,361
2022−$3,457250%−$19,037−$45,939
2023+$2,478667%−$8,150+$38,435
2024+$22,5906100%−$6,562+$42,947
2025+$9,261786%−$27,887+$37,010
2026, Jan to Jul+$13,7172100%−$3,550+$24,355

RSI 2 backtest results

On ES it made $56,263 before costs. Fees and slippage took $1,286 of that.

Net = before costs − fees − slippage
ES: $56,263 − $161 − $1,125 = $54,976
Every figure of the RSI 2 backtest, by contract
FigureESNQ
Net after costs+$54,976+$64,989
Before costs+$56,263+$66,485
Fees$161$161
Slippage$1,125$1,335
Trades4545
Trades a year44
Win rate80%76%
Profit factor2.051.87
Average trade$1,222$1,444
Average trade, 95% interval−$259 to $2,480−$1,198 to $3,536
Sharpe ratio0.500.31
Largest drawdown−$27,887−$53,514
Time in the market6%6%
Buying and holding the contract+$236,212+$401,004

The interval holds zero: this test cannot tell the average trade from no edge.

RSI 2 code and Pine Script

The strategy as the backtest ran it, and the Pine Script our compiler wrote from it for TradingView.

RSI 2
rsi2.py
1from atlantive import BUY, RSI, SELL, Bars, Rolling, Strategy2 3 4class Rsi2(Strategy):5    """Connors' RSI 2: buy a pullback in an uptrend, sell the first close above the 5-day average.6 7    A day is the CME trading day, 18:00 to 17:00 New York (the run's daily bars). When a day closes8    above its 200-day simple mean and its two-day RSI is below 5, the strategy buys one contract. It9    sells when a day closes above its 5-day simple mean. Long only. Each decision is taken at a daily10    close and fills at the next session's first one-second bar, at the 18:00 New York reopen.11    """12 13    data = "bars"14 15    class Params:16        trend: int = 20017        exit: int = 518        entry_rsi: float = 5.019        clip: int = 120 21    class State:22        bars: Bars(interval_ns=86_400_000_000_000)23        rsi: RSI(2)24        long: Rolling(window=200)25        short: Rolling(window=5)26 27    def on_event(self, view, ev, orders):28        if not self.bars.update(ev):29            return30        close = float(self.bars.prev_close)31        self.rsi.update(close)32        self.long.update(close)33        self.short.update(close)34        if self.long.count < self.p.trend or self.rsi.ready == 0:35            return36        if view.position > 0:37            if close > self.short.mean():38                orders.ioc(side=SELL, qty=abs(view.position))39        elif view.position == 0 and close > self.long.mean() and self.rsi.value < self.p.entry_rsi:40            orders.ioc(side=BUY, qty=self.p.clip)
1//@version=62// Rsi2, exported from Atlantive.3// Chart simulation: decisions use completed bars; market orders fill at the next bar open.4// Native fills, fees, data gaps and session boundaries can differ. Re-test on the target symbol.5// Use standard time-based candles and the strategy's timeframe, not synthetic chart prices.6// Pine v6 trims old trade records at its order limit; the strategy keeps calculating.7// Margin is explicitly disabled to retain the native signal simulation's sizing.8strategy("Rsi2", overlay=true, initial_capital=100000.0, commission_type=strategy.commission.cash_per_contract, commission_value=1.68, default_qty_type=strategy.fixed, default_qty_value=1, calc_on_every_tick=false, process_orders_on_close=false, slippage=0, margin_long=0, margin_short=0)9 10if timeframe.in_seconds() != 8640011    runtime.error("Rsi2 was exported for the 1 day timeframe; set the chart to 1D.")12 13trend = input.int(200, "trend", minval=-9007199254740991, maxval=9007199254740991)14exit = input.int(5, "exit", minval=-9007199254740991, maxval=9007199254740991)15entry_rsi = input.float(5.0, "entry_rsi")16clip = input.int(1, "clip", minval=-9007199254740991, maxval=9007199254740991)17 18_q_safe_int(x) =>19    if math.abs(x) > 900719925474099120        runtime.error("an integer left the exact chart range; this run cannot be compared faithfully")21    int(x)22_q_int(x) => _q_safe_int(x < 0 ? math.ceil(x) : math.floor(x))23 24_q_close = _q_int(math.round(close * 1000000000.0))25 26var float _q_rsi_value = 0.027var int _q_rsi_ready = 028var int _q_rsi_count = 029var _q_long_buf = array.new_float(200, 0.0)30var int _q_long_idx = 031var int _q_long_count = 032var float _q_long_off = 0.033var float _q_long_sum = 0.034var float _q_long_sumsq = 0.035var int _q_long_skipped = 036var _q_short_buf = array.new_float(5, 0.0)37var int _q_short_idx = 038var int _q_short_count = 039var float _q_short_off = 0.040var float _q_short_sum = 0.041var float _q_short_sumsq = 0.042var int _q_short_skipped = 043float close_l = na44 45bool _q_running = true46close_l := _q_close * 1.047_q_sample1 = close_l48_q_raw1 = ta.rsi(_q_sample1, 2)49_q_rsi_value := nz(_q_raw1)50_q_rsi_ready := na(_q_raw1) ? 0 : 151_q_rsi_count := _q_rsi_count + 152_q_sample2 = close_l53if na(_q_sample2) or math.abs(_q_sample2) > 1.7976931348623157e30854    _q_long_skipped := _q_long_skipped + 155else56    if _q_long_count == 057        _q_long_off := _q_sample258    if _q_long_count >= 20059        _q_old3 = array.get(_q_long_buf, _q_long_idx) - _q_long_off60        _q_long_sum := _q_long_sum - _q_old361        _q_long_sumsq := _q_long_sumsq - _q_old3 * _q_old362    else63        _q_long_count := _q_long_count + 164    _q_dev3 = _q_sample2 - _q_long_off65    array.set(_q_long_buf, _q_long_idx, _q_sample2)66    _q_long_sum := _q_long_sum + _q_dev367    _q_long_sumsq := _q_long_sumsq + _q_dev3 * _q_dev368    _q_long_idx := (_q_long_idx + 1) % 20069    if _q_long_idx == 0 and _q_long_count >= 20070        _q_origin3 = _q_long_off + _q_long_sum / _q_long_count71        _q_total3 = 0.072        _q_totalsq3 = 0.073        for _q_j3 = 0 to 19974            _q_e3 = array.get(_q_long_buf, _q_j3) - _q_origin375            _q_total3 := _q_total3 + _q_e376            _q_totalsq3 := _q_totalsq3 + _q_e3 * _q_e377        _q_long_off := _q_origin378        _q_long_sum := _q_total379        _q_long_sumsq := _q_totalsq380_q_sample4 = close_l81if na(_q_sample4) or math.abs(_q_sample4) > 1.7976931348623157e30882    _q_short_skipped := _q_short_skipped + 183else84    if _q_short_count == 085        _q_short_off := _q_sample486    if _q_short_count >= 587        _q_old5 = array.get(_q_short_buf, _q_short_idx) - _q_short_off88        _q_short_sum := _q_short_sum - _q_old589        _q_short_sumsq := _q_short_sumsq - _q_old5 * _q_old590    else91        _q_short_count := _q_short_count + 192    _q_dev5 = _q_sample4 - _q_short_off93    array.set(_q_short_buf, _q_short_idx, _q_sample4)94    _q_short_sum := _q_short_sum + _q_dev595    _q_short_sumsq := _q_short_sumsq + _q_dev5 * _q_dev596    _q_short_idx := (_q_short_idx + 1) % 597    if _q_short_idx == 0 and _q_short_count >= 598        _q_origin5 = _q_short_off + _q_short_sum / _q_short_count99        _q_total5 = 0.0100        _q_totalsq5 = 0.0101        for _q_j5 = 0 to 4102            _q_e5 = array.get(_q_short_buf, _q_j5) - _q_origin5103            _q_total5 := _q_total5 + _q_e5104            _q_totalsq5 := _q_totalsq5 + _q_e5 * _q_e5105        _q_short_off := _q_origin5106        _q_short_sum := _q_total5107        _q_short_sumsq := _q_totalsq5108if _q_long_count < trend or _q_rsi_ready == 0109    _q_running := false110if _q_running111    if _q_int(strategy.position_size) > 0112        if close_l > (_q_short_count == 0 ? 0.0 : _q_short_off + _q_short_sum / _q_short_count)113            _q_qty6 = _q_int(math.abs(_q_int(strategy.position_size)))114            if _q_qty6 <= 0115                runtime.error("market order quantity must be a positive whole unit")116            _q_pos6 = _q_int(strategy.position_size)117            if _q_pos6 < 0 or _q_pos6 > 0 and _q_qty6 < _q_pos6118                runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")119            strategy.order("q1", strategy.short, _q_qty6)120    else if _q_int(strategy.position_size) == 0 and close_l > (_q_long_count == 0 ? 0.0 : _q_long_off + _q_long_sum / _q_long_count) and _q_rsi_value < entry_rsi121        _q_qty7 = _q_int(clip)122        if _q_qty7 <= 0123            runtime.error("market order quantity must be a positive whole unit")124        _q_pos7 = _q_int(strategy.position_size)125        if _q_pos7 > 0 or _q_pos7 < 0 and _q_qty7 < -_q_pos7126            runtime.error("this order would add to or partially reduce a position, so its trade ledger would not be faithful")127        strategy.order("q2", strategy.long, _q_qty7)

How it was tested

The published rules, never tuned on the data, with real costs on every fill. Every strategy here is tested the same way.

Market data
CME Globex daily bars, Jan 2, 2016 to Jul 31, 2026
Rules
As published, with the published parameters, never tuned on this data
Size
1 contract on every trade
Contract
The most traded one, rolled as the market moved
Fees
The broker's $0.50 a side, plus CME's and the NFA's fees when the window opens
Slippage
1 tick a side on ES, 2 in NQ's regular session and 3 outside it, 1 on other markets, where it was not measured
Stops and entries
Tested on 1-second closes and filled at the next bar
Contracts traded
ES: 43 contracts, ESH6 to ESU6NQ: 43 contracts, NQH6 to NQU6
Costs paid
ES: $161 in fees, $1,125 in slippageNQ: $161 in fees, $1,335 in slippage
Warm-up
Each new contract first reads the last 200 trading days, moved onto its prices
Flagged days
ES: NoneNQ: None Days the data holds too few bars for. Flagged, not removed.

Could you pass
a prop firm challenge
with the RSI 2 strategy?

A backtest says whether a strategy makes money. Our AI runs its trades through the rules of every prop firm account, then tells you which one it would pass and at what size.

No card needed. Free credits every month.

  • Most money: Blue Guardian Futures Direct 50K, $5,084
  • Best payout odds: Funded Futures Family Straight to Funded 50K, 98%
  • Fastest pass: Phidias Express to Live 50K, 11 days
Blue Guardian Futures Direct 50K
Most money

$5,084

Median net across 2,000 simulated runs

Evaluation
None
First payout
97%
Fees paid
$1,521

Median net across 2,000 simulated runs

Best 5%$13,143Worst 5%−$412
Day 060120180
Example: ES opening range breakout

Questions about the RSI 2 strategy

What is the RSI 2 strategy?

In an uptrend, buy when the 2-day RSI drops below 5, and sell at the first close above the 5-day average. The rules follow Larry Connors and Cesar Alvarez, Short Term Trading Strategies That Work. Atlantive backtested it on CME futures from January 2016 to July 2026 after costs.

Is the RSI 2 strategy profitable on ES futures?

In this backtest it made money: on ES futures from January 2016 to July 2026 it made $54,976 after costs, over 45 trades, positive in 8 of 11 years; on NQ it made $64,989. Buying and holding one ES contract over the same window made $236,212. The average trade was $1,222, its 95% interval −$259 to $2,480. These are hypothetical results of a backtest, not of trading.

What are the RSI 2 strategy's rules?

When a CME trading day closes above its 200-day simple average and the two-day RSI is below 5, the strategy buys one contract. It sells when a day closes above its 5-day simple average. Long only, with no stop. The rules follow Larry Connors and Cesar Alvarez, Short Term Trading Strategies That Work. Its parameters are the published ones, never tuned on the data it was tested on.

How was the RSI 2 strategy backtested?

On CME Globex data from January 2016 to July 2026, one contract, on daily bars, rolled to the most traded contract as the market moved, with the broker's and CME's fees and the slippage measured on each market. Stops and entries were tested on 1-second closes and filled at the next bar. Nothing was fitted to the data.

Can I run the RSI 2 strategy in TradingView?

Yes. The page carries its Pine Script, written by Atlantive's compiler from the same code the backtest ran, for TradingView's strategy tester. A chart's fills and fees can differ from the backtest's, so test it again on the symbol you trade.

Can I change the RSI 2 strategy and test it again?

Yes. Rerun it in Atlantive: a new chat opens with the strategy's rules in the box, for you to read, change and send. The agent writes the code, backtests it on the market and window you name, and reports the result with its costs.

Rerun it in Atlantive. Change the market, the dates or a rule, then send it.

A new chat opens with this in the box

Backtest Connors' RSI 2 on ES, 2016-01-02 to 2026-07-31, one contract on a $100,000 account with default costs and warm_up 200: on daily bars, buy when the close is above the 200-day simple average and RSI(2) is below 5, sell when the close is above the 5-day simple average.

Never sent for you

May we measure this visit?

With your consent, Google Analytics and PostHog count visits to these pages. You can separately allow Google Ads to measure visits from our ads. Visit measurement starts only after you choose. Cookie policy