Dip Ladder: RSI-2 Pullback Strategy [AlgoNexta] by AlgoNexta
By AlgoNexta
Performance Metrics
- Author: AlgoNexta
- Symbol: OANDA:SPX500USD
- Timeframe: 1 day
Description
Dip Ladder buys short, sharp pullbacks inside an established uptrend and sells the bounce. It is built on the well-known 2-period RSI idea, with two additions: a real stop on every trade and a two-step exit.What is differentThe usual form of the 2-period RSI idea has no stop: it buys every dip and waits for the bounce, which works until one dip keeps falling. This version fixes the risk before the entry. Every trade has an ATR stop, the position size is calculated from that stop so each trade risks the same share of equity, half of the position is banked at a first target, and a time limit closes trades that do not bounce. The first target and the time limit can be switched off in the inputs to see what each one adds.EntryLong when the close is above the 200-bar SMA and the 2-period RSI is below 10.Long only by default. Shorts of spikes in a downtrend (RSI above 90 below the SMA) can be switched on with the Direction input.One position at a time. Signals use closed bars and orders fill on the next bar's open.Exit in two steps (default)Initial stop: 2.5 ATR(14) from the signal close. This distance is 1R.Target 1 at 0.75R closes half of the position, and the stop moves to the entry price.The rest leaves when a bar closes above the 5-bar SMA (the bounce), at the stop, or after 10 bars.Steps, sizes and the exit of the last part can be changed in the inputs.Risk managementEach position risks 1% of equity between entry and initial stop, capped at 0.9 times equity.Optional daily guard: maximum new positions per day and a daily loss limit.Alerts on every entry and on every target reached. Create one alert on the strategy and select "alert() function calls only".Backtest settingsInitial capital 10,000, risk 1% per trade, commission 0.01% per order, slippage 2 ticks, no pyramiding, default margin of 100% (no leverage). The script calculates the position size itself from the risk input, so the "Order size" field in the Properties tab is not used. These costs match index CFDs. For single stocks, start the test after 2005: early split-adjusted prices of a few cents make the 2-tick slippage unrealistic.Behaviour to expectBuilt for daily charts of broad stock indices, which have a long-term upward drift.A high share of winning trades with small gains each, and a modest total return at 1% risk.The published chart is the S&P 500 index CFD on the daily timeframe (history from 2003) with the default settings. On the cash index with its full history back to 1871, the same settings had a much deeper drawdown of about 25%, so the result depends strongly on the period and the data.In long bear markets the trend filter keeps it mostly out of the market.TradingView counts every partial exit as a separate trade in the Strategy Tester.NotesBacktest results describe the past only and do not predict future results. This script is for research and education and is not financial advice.