[3Commas] Triple RSI DCA Long - Risk Adjusted Averaging Strategy by 3Commas

By 3Commas

Performance Metrics

Description

πŸ”· What it does:This strategy executes a long-only Dollar-Cost-Averaging approach driven by three independent RSI signals layered across two timeframes. It opens a base order on a 5-minute RSI exit-from-oversold confirmation, layers a martingale-scaled safety order ladder triggered by a 30-minute RSI signal in combination with a faster 5-minute short-period RSI signal, and exits the entire position on a percentage-based take profit measured from the average entry. The architecture is designed for risk-first deployment - capturing partial upside of trending moves while maintaining a structurally bounded drawdown profile.Base Order entry: RSI(14) on 5m crosses above 30 (oversold-exit confirmation)Safety Order trigger: RSI(14) on 30m OR RSI(7) on 5m crosses above 30, coinciding with a structural deviation from base priceMartingale ladder: 3 safety orders, volume scale 1.9Γ—, price step 1.0% with deviation coefficient 1.65Take Profit: configurable percentage from average entry (default 1.3%)πŸ”· Who is it for:DCA-style traders who prefer averaged-in entries over single-shot directional bets.Risk-conscious participants who want a smoother equity curve than passive holding.Bot operators who automate execution through webhook integration with a DCA Bot.Cross-instrument testers who want a single signal framework portable across crypto, perpetuals, and tokenized equities.πŸ”· How does it work:Long Entry: A base order opens when RSI(14, 5m) crosses above 30, signaling exit from a short-term oversold regime. The crossover is a single-shot confirmation per cycle to prevent re-entries during unconfirmed bottoming.Short Entry: Not used - strategy is long-only by design.Exit Management: The full position closes when price reaches Average Entry Γ— (1 + Take Profit %). The strategy carries no stop loss; invalidation is replaced by the depth of the safety order ladder, which absorbs a structural pullback of up to 5.37% from base before the ladder is fully consumed.πŸ”· Why it's unique:Multi-timeframe RSI stack - three independent RSI conditions across 5m and 30m act as a regime filter, reducing false entries during trendless chop and isolating only confirmed oversold-exit conditions. Different lookback lengths (RSI(14) and RSI(7)) on the same 5m timeframe capture both medium-term and short-term momentum exhaustion, while the 30m RSI(14) provides higher-timeframe trend-context confirmation for safety orders.Structural averaging architecture - safety orders trigger only at predefined cumulative deviations from base price (βˆ’1.00%, βˆ’2.65%, βˆ’5.37%), not at fixed time intervals. This aligns re-entries with structurally significant price levels rather than arbitrary clock-based steps, preserving capital efficiency on shallow pullbacks.Bot Integration - all entries and exits expose alert events with webhook-ready JSON payloads, enabling automated execution through a connected DCA Bot. The strategy publishes the signal, the bot handles position management on the exchange autonomously across multiple pairs.πŸ”· Considerations Before Using the Indicator:Market & Timeframe: Designed and tested on a 3-minute base chart with the multi-RSI signal stack pulling from 5m and 30m. Best suited to liquid, volatile instruments with sufficient intraday range to populate all three RSI conditions - perpetual contracts, tokenized equities, and major altcoins. Not recommended for low-volatility, sideways-only assets where RSI rarely cycles through oversold zones.Limitations: The strategy carries no stop loss. In sustained downtrends extending beyond the deepest safety order (βˆ’5.37% from base), the position holds unrealized loss until either the average is recovered or the deal is manually closed. Consider adding a regime filter (e.g., long-term moving average) for deployment in non-trending or bearish markets.Backtesting & Demo Testing: Always run extended backtests across multiple market regimes β€” uptrend, downtrend, and ranging β€” before deploying real capital. Demo-trade for at least one month to observe behavior in conditions not represented in historical data. Past performance is not indicative of future results.Parameter Adjustments: Default commission and slippage values are calibrated for typical perpetual venues. Adjust commission_value to match your exchange (e.g., 0.05 for OKX Perpetual, 0.055 for Bybit Perpetual, 0.04 for Binance USD-M Futures, 0.10 for Binance Spot, 0.40 for Kraken Spot). Slippage of 5 ticks accounts for typical taker execution on liquid pairs β€” reduce for very tight markets, increase for thin altcoin order books. Take profit, safety order step, and volume scale should be tuned per instrument volatility profile (see preset section below).πŸ”· STRATEGY PROPERTIESSymbol: OKX:COINUSDT.P (Perpetual Swap on tokenized Coinbase Global stock).Timeframe: 3m chart with multi-timeframe signal stack (5m / 30m).Test Period: Feb 26, 2026 - May 7, 2026 (instrument's full available history since listing on OKX).Initial Capital: 200 USDT.Order Size per Trade: Base Order 20.075 USDT, Safety Orders 15.075 / 28.64 / 54.42 USDT (martingale Γ—1.9). Maximum cumulative position notional β‰ˆ 118.21 USDT. Observed Max Drawdown 5.55% - well within the ≀10% threshold.Commission: OKX taker 0.05% - matches exchange schedule for the tested venue.Slippage: 5 ticks - accounts for typical taker execution on liquid perpetual contracts.Margin for Long and Short Positions: 100% (1Γ— leverage assumed; no margin amplification applied).Indicator Settings: Default Configuration.Base Order Volume: 20.075 USDTSafety Order (1st): 15.075 USDTMax Safety Orders: 3Volume Scale: 1.9Price Step (1st SO): 1.0%Step Scale: 1.65Take Profit: 1.3% from average entryEntry Signal: RSI(14, 5m) crossover above 30SO Signal: RSI(14, 30m) OR RSI(7, 5m) crossover above 30Strategy: Long Only.πŸ”· STRATEGY RESULTS⚠️ Remember, past results do not guarantee future performance.Net Profit: +26.56 USDT (+13.28%)Max Drawdown: 11.84 USDT (5.55%)Total Closed Trades: 104Percent Profitable: 73.08% (76 / 104)Profit Factor: 3.911Average Trade: [to fill from Strategy Tester report]Average # Bars in Trades: [to fill from Strategy Tester report]Benchmarking versus Buy & Hold over the same period:Strategy: Max +13.43% / Current +13.43% / Min βˆ’0.66%Buy & Hold: Max +16.83% / Current +10.66% / Min βˆ’7.54%The strategy captured higher current return than passive holding while drawing down ~11Γ— less at the worst point of the period - reflecting the risk-first design intent.πŸ”· RECOMMENDED PRESETS FOR OTHER INSTRUMENTSThese tuning starting points are derived from comparable backtests on adjacent instruments. Always re-validate on your own venue and capital before live deployment.COINUSDT.P (OKX Perpetual β€” current default):Take Profit: 1.3% | SO Step: 1.0% | Step Scale: 1.65 | Volume Scale: 1.9Entry: RSI(14, 5m) > 30 | SO: RSI(14, 30m) OR RSI(7, 5m) > 30Reference period: Feb 2026 β€” May 2026 | Trades: 104 | Max DD: 5.55% | PF: 3.91General tuning notes:Higher-volatility instruments (low-cap altcoins, fresh listings): widen SO step to 1.3–1.5%, raise Step Scale to 1.8–2.0.Lower-volatility instruments (BTC, ETH on major venues): tighten SO step to 0.6–0.8%, lower TP to 0.8–1.2%.Ranging or accumulation regimes: lower TP (0.8–1.2%) for higher trade frequency.Trending regimes: raise TP (2.0–3.0%) to capture larger structural moves.πŸ”· How to Use It:πŸ”Έ Adjust Settings: Set Base Order and Safety Order sizes proportional to your capital. The default 20 / 15-USDT structure is calibrated for a 200-USDT test account; scale linearly to your equity. Use the preset table above as a starting point for the instrument you intend to trade, then refine on your own backtest.πŸ”Έ Results Review: Verify Maximum Drawdown stays within your personal risk budget. The strategy is configured to remain below 10% on tested instruments, but extended history may shift this profile. Re-test on your own venue using venue-specific commission and slippage. Demo-trade for at least one month before any live deployment.πŸ”Έ Create alerts to trigger the DCA Bot: Two alert conditions are exposed by the script - "Deal Entry" fires on each new base order, and "Deal TP" fires when the take profit target is hit. Configure both alerts in TradingView with webhook URLs pointing to your DCA Bot's deal-start and close-deal endpoints. Once configured, the strategy publishes the signal and the bot handles execution on the exchange autonomously.πŸ”· INDICATOR SETTINGSBase Order Volume (USD) - Notional value of the initial entry per cycle.Safety Order Volume (1st, USD) - Notional value of the first averaging-down order; subsequent SOs scale by Volume Scale.Max Safety Orders - Total number of averaging steps available per deal.Volume Scale (martingale) - Size multiplier applied to each successive safety order.Price Step % (1st SO) - Percentage deviation from base price that triggers the first safety order.Step Scale (martingale) - Multiplier applied to each successive deviation step.Take Profit % (from AVG) - Profit target percentage measured from average entry price.Entry RSI Length / Threshold / Timeframe - Parameters for the base order RSI signal.SO Sig 1 β€” RSI Length / Threshold / Timeframe - Parameters for the first safety order trigger.SO Sig 2 β€” RSI Length / Threshold / Timeframe - Parameters for the second safety order trigger (OR-combined with the first).Limit by date window? - Toggle to constrain backtest to a specific date range.From / To - Date range bounds applied when the window filter is enabled.πŸ‘¨πŸ»β€πŸ’»πŸ’­ 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.Release NotesComments modification.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView