RSI Oversold AO - Long Strategy by 3Commas

By 3Commas

Performance Metrics

Description

RSI Oversold AO β€” Long StrategyπŸ”· What it does:This is a long-only DCA strategy that buys oversold dips and continues averaging into them only while the asset stays in the oversold zone. A long entry opens on a lower-timeframe RSI crossing down through 30. Four safety orders then average the position on an aggressive 2Γ— deviation Γ— 2Γ— size ladder β€” but each one fires only if the lower-timeframe RSI is still below 25 at that moment. No falling-knife averaging into recovering momentum. Exit is a fixed 3% Take Profit from average entry. No trailing, no Stop Loss. - Single base order with up to four safety orders on a 2Γ— Γ— 2Γ— ladder. - Dual RSI gating: cross-down entry trigger AND static oversold continuation filter. - Aggressive size compounding: 60 / 120 / 240 / 480 USDT margins on the four safety orders. - Fixed Take Profit: 3% above average entry, no trailing. - Every entry, safety order, and exit emits a webhook-ready JSON alert payload for direct DCA Bot consumption.πŸ”· Who is it for: - Swing traders looking for systematic long exposure on crypto pairs that frequently sweep liquidity into oversold readings. - DCA-style traders who want averaging gated by momentum continuation, not just price levels β€” the "no falling knives" guard prevents loading further when momentum has already reversed. - Bot operators who want to drive a DCA Bot via webhook with per-event JSON payloads tagged for each base / safety order / exit action. - Traders comfortable with deploying up to ~10% of equity per trade in exchange for a wider 3% profit target.πŸ”· How does it work: Entry RSI Filter (Oversold Cross Down): A 15-minute RSI(7) is sampled via request.security with lookahead disabled. The entry gate fires when RSI crosses down through 30 β€” momentum has just entered oversold territory. At host-bar close, if no position is open and the cross is fresh, the strategy opens the base order. Base Order: Sized at 100 USDT default (1% of 10k capital). Configurable as Market (default) or Limit at the bar's close. Safety Order Ladder (Dual Gate): After the base fill, the strategy monitors two conditions in parallel for each pending safety order: price deviation downward against the position AND a static RSI continuation filter. The k-th safety order fires only when close ≀ base entry Γ— (1 βˆ’ cumulative deviation) AND the 15-minute RSI(7) is still below 25. Cumulative deviation grows by the step multiplier (default 2Γ—): 1.00%, 3.00%, 7.00%, 15.00%. Each safety order's size grows by the size multiplier (default 2Γ—): 60, 120, 240, 480 USDT. Why the AO Gate Matters: A pure price-ladder DCA blindly averages into any decline. The RSI < 25 gate stops the averaging if momentum has reversed back above 25 β€” the asset is no longer oversold by the strategy's definition, and adding to the position would mean buying a recovery, not a dip. This filter trades off some averaging frequency for materially higher average-entry quality. Exit: A fixed Take Profit at 3% above the running average entry. The strategy closes the moment close β‰₯ TP target. No trailing, no scaling out, no second-guessing.πŸ”· Why it's unique: - Dual RSI Gating: Most DCA tools gate only the base entry. This strategy gates both the entry (cross-down momentum trigger) and the continuation of averaging (static oversold filter on each safety order). - Aggressive 2Γ— Γ— 2Γ— Ladder: Most published DCAs use mild 1.05–1.25Γ— compounding. This one doubles both the deviation step and the size each rung β€” the position gets large fast if all safety orders fill, but only inside a confirmed oversold regime. - Wide Take Profit (3%): Most scalp DCAs use tight 0.5–1.0% TPs. The 3% target lets the strategy ride the oversold reversal further before locking in, capturing more of the mean-reversion move. - DCA Bot Integration: Every event (base, AO 1–4, exit) emits a fully-formed JSON alert payload. Connect one alert to a DCA Bot's webhook URL and the strategy drives the bot end-to-end without any glue layer.πŸ”· Considerations Before Using the Strategy: Market & Timeframe: Defaults are calibrated for BINANCE:DOGEUSDT spot on 1h. The dual-RSI logic is portable to other liquid crypto pairs that frequently overshoot oversold, but RSI thresholds and the deviation ladder should be reviewed before redeployment. Sample Size: The 4-month backtest produced 44 closed trades β€” below the β‰₯100 floor typically used for statistical confidence. The strategy generates roughly 11 closed trades per month at default settings, so extending the test window to 12+ months would yield ~130 trades and a more robust sample. The 77.27% win rate and 5.791 profit factor are encouraging but should be re-validated on a longer test period before live deployment. Commission Calibration: The default 0.18% commission was set conservatively above Binance spot taker rates (~0.1%). Live performance with realistic Binance fees should be modestly better than the published numbers. Update the commission input to match your fee tier for accurate forward expectations. Strong Downtrends: Like any oversold-buying setup, this strategy is positioned for mean reversions, not waterfall declines. In sustained downtrends the strategy will keep filling the ladder while RSI < 25, then hold the position once RSI recovers. The dual RSI filter limits exposure compared to pure price-ladder DCAs, but a regime shift to sustained selling still produces extended underwater hold time. Aggressive Compounding: The 2Γ— Γ— 2Γ— ladder is more aggressive than typical published DCAs. If all four safety orders fill, the position scales from 100 USDT base to 1,000 USDT total = 10% of equity at default settings. This is right at the upper edge of TradingView's typical 5–10% per-trade band β€” comfortable, but no further headroom. Scale base + AO sizes down to dial position risk lower. No Stop Loss Justification: There is no exit on adverse moves beyond the 4-AO ladder. Per-trade risk is structurally capped by the bounded position-size ladder β€” at defaults that is 1,000 USDT max deployed = 10% of equity, at the upper edge of the conventional 5–10% per-trade band. If a hard exchange-side stop is required, layer it on the bot directly. RSI Oversold Continuation: The AO gate uses a static RSI < 25 check, not a cross. This means averaging continues as long as RSI stays below 25 β€” if RSI dips to 20 and stays there for multiple bars while price drops further, all four AOs can fill in succession. Conversely, a sharp RSI recovery above 25 freezes the ladder mid-position. Test the strategy's behavior on your target asset before live deployment. Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, especially on a strategy whose profitability hinges on the asset reaching the 3% TP target while still recovering from an oversold print.πŸ”· STRATEGY PROPERTIES Symbol: BINANCE:DOGEUSDT (Spot) Timeframe: 1H Test Period: February 1, 2026 β€” May 28, 2026 (~4 months). Initial Capital: 10,000 USDT. Order Size per Trade: 1% of Capital base + 4 safety orders at 2Γ— progression. Max Capital Deployed: 1,000 USDT per trade (~10% of equity, upper edge of 5–10% band). Commission: 0.18% per trade. Slippage: 3 ticks. Margin for Long Positions: 100%. Indicator Settings: Default Configuration. Base Order: 100 USDT, Market by default (Limit toggle available). Take Profit: 3.0% above average entry (no trailing). Stop Loss: None β€” bounded position size is the structural risk cap. Entry Filter: 15m RSI(7) Crossing Down 30. AO Gate: 15m RSI(7) Less Than 25 (static continuation filter). Safety Orders: 4, Deviation 1.0%, Deviation Step 2.0Γ—, Size Multiplier 2.0Γ—. Strategy: Long Only.πŸ”· STRATEGY RESULTS ⚠️ Remember, past results do not guarantee future performance. Net Profit: +126.22 USDT (+1.26%) Max Equity Drawdown: 96.05 USDT (0.96%) Total Closed Trades: 44 Percent Profitable: 77.27% (34 / 44) Profit Factor: 5.791πŸ”· How to Use It: πŸ”Έ Adjust Settings: Open the strategy inputs and review the Base Order Size, the entry RSI filter (timeframe / length / level), the AO gate RSI filter, the 4-AO ladder parameters, and the Take Profit percentage. Defaults are calibrated for DOGEUSDT 2h β€” recalibrate per asset before deploying. πŸ”Έ Results Review: Run a full-period backtest and confirm Max Drawdown stays inside your personal risk band. Validate that the closed-trade count is statistically meaningful (β‰₯ 100 is a reasonable floor). Update commission and slippage to match your exchange's actual conditions. πŸ”Έ Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste the DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The strategy will emit JSON payloads for entry, each safety order, and exit β€” formatted for direct DCA Bot consumption.πŸ”· INDICATOR SETTINGS Base Order Size (USDT): USDT amount opened on the long entry. Use LIMIT for Base: Toggle between Market (default) and Limit at bar close. Averaging Orders per Trade: Maximum number of safety orders per deal (default 4). First AO Size (USDT): USDT size of the first safety order; subsequent AOs scale by the Size Multiplier. Deviation to First AO (%): Distance from base entry at which AO1 becomes eligible. Deviation Step Multiplier: Ladder factor that widens each subsequent deviation step. Order Size Multiplier: Factor that grows each subsequent safety order's USDT size. Entry RSI Timeframe / Length / Level: Lower-timeframe RSI filter that gates the base entry on cross down. AO Trigger RSI Timeframe / Length / Less Than: Lower-timeframe RSI continuation filter that gates each safety order. Take Profit (%): Fixed distance above average entry where the long closes for profit. DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload. Visualization: Toggle AO Ladder, Avg / TP plot lines, fill labels, status table. Brand Watermark: Configurable text, position, size, and transparency.πŸ‘¨πŸ»β€πŸ’»πŸ’­ We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.__The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView