[3Commas] Pullback Sniper Strategy by 3Commas

By 3Commas

Performance Metrics

Description

πŸ”· What it does:This strategy executes a long-only Dollar-Cost-Averaging approach driven by a single classic RSI signal on a 3-minute timeframe. It opens a base order when RSI(14) crosses below an oversold threshold, layers a martingale-scaled safety order ladder at predefined cumulative price deviations from the base, and exits the full position when RSI crosses back above an overbought threshold combined with a minimum profit gate from the average entry. The design is built for high-frequency intraday DCA on volatile liquid instruments β€” clean signal logic, structured averaging, no stop-loss dependency.Base Order entry: RSI(14) crosses below 31 on 3mSafety Order ladder: 5 levels, martingale volume scale Γ—1.25, deviation scale Γ—1.30Exit: RSI(14) crosses above 69 on 3m AND profit β‰₯ 2.4% from average entryCumulative deviation mode (deviations measured from BASE price)πŸ”· Who is it for:Intraday DCA traders who prefer aggressive averaging with tight take-profit cycles.Bot operators who run automated execution through webhook integration with a DCA Bot.Discretionary traders who want a single-signal framework that is easy to backtest and tune.Cross-instrument testers who want one signal layer portable across crypto, perpetuals, and tokenized equities.πŸ”· How does it work:Long Entry: A base order opens when RSI(14, 3m) crosses below 31, signaling entry into an oversold regime. The crossover is a single-shot confirmation per cycle to prevent re-entries during the same RSI sweep.Short Entry: Not used β€” long-only by design.Exit Management: The full position closes when two conditions align β€” RSI(14, 3m) crosses above 69 (overbought exit signal) AND the unrealized profit from average entry reaches the configured minimum threshold (default 2.4%). This dual gate prevents premature exits during shallow rebounds and structural exits when profit has not yet recovered.πŸ”· Why it's unique:Dual-gate exit logic β€” closing requires both an RSI sell signal AND a minimum profit threshold from average entry. This combination filters out RSI-triggered exits that would close deep-averaged positions at a loss, ensuring every deal closes only when both the signal and the math agree.Cumulative martingale architecture β€” safety order trigger prices are computed from the base entry using a cumulative compounding deviation (each successive step multiplied by Γ—1.30), not by chaining from the previous SO. This produces a smoother, more controlled deepening of the ladder versus pure linear stepping.Bot Integration β€” entry and exit alerts ship with webhook-ready JSON payloads, enabling direct trigger of a connected DCA Bot. The strategy publishes the signal, the bot handles order routing on the exchange.πŸ”· Considerations Before Using the Indicator:Market & Timeframe: Designed for a 3-minute base chart on liquid, volatile instruments with active intraday RSI cycling β€” perpetual contracts, tokenized equities, and major altcoins. Performance degrades on low-volatility assets where RSI rarely reaches the oversold trigger or where 3-minute candles are illiquid.Limitations: The strategy carries no stop loss. In sustained downtrends extending beyond the deepest safety order, the position holds unrealized loss until either the average is recovered or the deal is closed manually. Consider adding a regime filter (e.g., long-term moving average direction) for deployment in non-trending or sustained bearish markets. The dual-gate exit can hold positions for extended periods if RSI never crosses above 69 while profit threshold is unmet β€” pair this with a manual review cadence.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 (~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 taker execution on liquid pairs β€” reduce for very tight markets, increase for thin order books. RSI thresholds (31 / 69) and the SO step (1.3%) should be tuned per instrument volatility profile.πŸ”· STRATEGY PROPERTIESSymbol: Cross-instrument β€” tested on Cardano/Tether (BYBIT:ADAUSDT Spot) on 3m. Logic is identical for any liquid pair.Timeframe: 3m chart.Test Period: Feb 16, 2026 β€” May 11, 2026 (β‰ˆ3 months of recent active trading).Initial Capital: 10,000 USDT.Order Size per Trade: Base Order 45 USDT, Safety Orders 55 / 68.75 / 85.94 / 107.42 / 134.28 USDT (martingale Γ—1.25). Maximum cumulative position notional β‰ˆ 496.39 USDT (β‰ˆ 5% of capital). Observed Max Drawdown 0.67% β€” far inside the ≀10% threshold.Commission: 0.10% taker β€” neutral default; adjust per venue (see notes above).Slippage: 5 ticks β€” typical taker execution on liquid pairs.Margin for Long and Short Positions: 100% (1Γ— leverage assumed; no margin amplification applied).Indicator Settings: Default Configuration.Base Order Volume: 45 USDTSafety Order Volume (1st): 55 USDTMax Safety Orders: 5Price Step (1st SO): 1.3%Step Coefficient: 1.30Volume Coefficient: 1.25Min Profit (from AVG): 2.4%Entry: RSI(14, 3m) crossunder 31Exit Signal: RSI(14, 3m) crossover 69 AND profit β‰₯ 2.4%Strategy: Long Only.πŸ”· STRATEGY RESULTS⚠️ Remember, past results do not guarantee future performance.Net Profit: +95.00 USDT (+0.95%)Max Drawdown: 67.16 USDT (0.67%)Total Closed Trades: 47Percent Profitable: 72.34% (34 / 47)Profit Factor: 7.377Average Trade: [to fill from Strategy Tester report]Average # Bars in Trades: [to fill from Strategy Tester report]Backtest run on BYBIT:ADAUSDT (Spot) on 3m base chart. Re-run on your own venue with venue-specific commission and slippage before drawing conclusions for live deployment.πŸ”· How to Use It:πŸ”Έ Adjust Settings: Set Base Order and Safety Order volumes proportional to your account size. The default 45 / 55-USDT structure is calibrated for a 10,000-USDT test account, so total maximum exposure stays below 5% of capital. Scale linearly to your equity. RSI thresholds (31 / 69) and the SO step (1.3%) can be tightened on lower-volatility instruments or widened on more volatile pairs.πŸ”Έ Results Review: Verify Maximum Drawdown stays within your personal risk budget. The strategy is configured for a very conservative position-size envelope, but extended history may shift the profile. Re-test on your own venue using venue-specific commission and slippage values. Demo-trade for at least one month before any live deployment.πŸ”Έ Create alerts to trigger the DCA Bot: Two alert messages are exposed by the script β€” "Deal Start" fires on each new base order, and "Deal Close" fires when the dual-gate exit condition triggers. Configure both alerts in TradingView with the webhook URL pointing to your DCA Bot's signal endpoint. Once configured, the strategy publishes the signal and the bot handles execution on the exchange autonomously.πŸ”· INDICATOR SETTINGSRSI Length β€” Period for the RSI calculation (default 14).RSI Buy Trigger β€” Oversold threshold for the base order signal (default 31, cross-below).RSI Sell Trigger β€” Overbought threshold for the exit signal (default 69, cross-above).Base Order Volume (USDT) β€” Notional value of the initial entry per cycle.Safety Order Volume (USDT) β€” Notional value of the first averaging-down order; subsequent SOs scale by Volume Coefficient.Max Safety Orders β€” Total number of averaging steps available per deal.Price Deviation % (SO step from base) β€” Percentage deviation from base price for the first safety order; subsequent steps scale by Step Coefficient.Martingale Volume Coefficient β€” Size multiplier applied to each successive safety order.Martingale Step Coefficient β€” Multiplier applied to each successive deviation step.Min Profit % (from avg entry) β€” Minimum unrealized profit threshold required for the exit gate.Require RSI Sell Signal to Close β€” When enabled, both the RSI sell crossover AND the min profit threshold must align for the position to close (dual-gate exit).Limit by Date Range β€” Toggle to constrain backtest to a specific date window.Stats card / Watermark β€” Display layer controls for on-chart backtest summary and branding.Webhook β€” Bot ID, Email Token, and Pair label for DCA Bot signal routing.πŸ‘¨πŸ»β€πŸ’»πŸ’­ 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