[3Commas] XAUT RSI Reversal DCA - Short Strategy by 3Commas

By 3Commas

Performance Metrics

Description

[3Commas] XAUT RSI Reversal DCA - Short StrategyπŸ”· What it does:This is a short-only DCA strategy that fades overbought momentum on XAUT / USDT (Tether Gold). A short deal opens when the 3-minute RSI(9) crosses down through 80 β€” a momentum-exhaustion signal after a fast push higher. Up to three averaging orders then fill at fixed deviations ABOVE the base entry (+1%, +2%, +3%) with uniform sizing, pulling the average entry up if price keeps rising. Exit is a 1.3% Take Profit from the average entry with a 0.3% trailing retrace, and a hard 8% Stop Loss caps the downside. - Single base order plus up to three uniform averaging orders on a fixed +1% / +2% / +3% ladder. - Tight 1.3% Take Profit with a 0.3% trailing lock β€” captures the mean-reversion snap-back, then trails to squeeze a little extra. - Hard 8% Stop Loss closes the trade if the short keeps running against the position β€” a real, bounded per-trade risk. - Every entry, averaging order, and exit emits a webhook-ready JSON alert payload for direct DCA Bot consumption.πŸ”· Who is it for: - Intraday traders fading overbought spikes on gold-pegged XAUT on lower timeframes. - Bot operators who want to drive a DCA Bot short deal from TradingView alerts with per-event JSON payloads. - Traders who want a mechanical short with a defined stop, modest averaging, and a quick profit target rather than an open-ended hold. - Operators looking for a low-correlation, short-side contributor (a gold-tracking asset) alongside crypto strategies.πŸ”· How does it work: Entry Trigger: A 3-minute RSI(9) is sampled via request.security with lookahead disabled (no repaint). The base short opens when that RSI crosses DOWN through 80 β€” i.e., the prior 3m close was β‰₯ 80 and the current is below it, marking the moment overbought momentum rolls over. Base Order: Sized at 500 USDT default (5% of 10k capital), placed as a Limit order at the signal bar's close (Market toggle available). Averaging Orders (Uniform DCA Ladder): After the base fill, the strategy monitors price deviation above the base entry. Each averaging order has a fixed deviation β€” +1%, +2%, +3% β€” with uniform sizing (250 USDT each, half the base). If price rises against the short, each rung adds size and raises the average entry, so a smaller reversal is needed to reach Take Profit. Exit (TP + Trailing): A 1.3% Take Profit below the running average entry arms a trailing exit. Once price trades through the TP level, the strategy tracks the in-favor low and closes when price retraces 0.3% off that low β€” locking the move while letting it extend. Stop Loss: A hard 8% Stop Loss above the average entry. If price runs against the short past that level, the position closes at market. This is the strategy's defined, bounded per-trade risk.πŸ”· Why it's unique: - Momentum-Exhaustion Trigger: Rather than shorting any overbought reading, the deal opens specifically on the RSI crossing DOWN through 80 β€” the rollover moment β€” which filters out trades that fire while momentum is still climbing. - Defined-Risk DCA: Most martingale DCA shorts run without a stop. This one keeps a modest 3-rung uniform ladder AND an 8% hard stop, so the worst-case loss per deal is bounded and known in advance. - Trailing Take Profit: The 1.3% target arms a 0.3% trailing exit rather than a fixed limit β€” capturing the reversion snap and then riding any follow-through. - DCA Bot Integration: Every event (base, AO 1–3, 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: Sample Size (Important): The backtest produced only 25 closed trades β€” far below the ~100-trade floor for statistical relevance. The 100% win rate and the undefined profit factor (no losing trades in the sample) are a direct consequence of this tiny, favorable window β€” they are NOT evidence of a deterministic edge and should not be extrapolated. Treat these numbers purely as a demonstration of the mechanic, run the strategy over a much longer window and across multiple assets, and expect losing trades in any realistic sample. Short Execution Venue: This is a short strategy. It cannot be executed on a spot account β€” live shorting of XAUT requires a margin or perpetual venue. Backtest figures shown here were generated on the XAUTUSDT chart; confirm your live venue supports shorts before deploying. Lower-Timeframe Sensitivity: Tested on a 3-minute chart with a 3-minute RSI trigger. Lower timeframes generate more signals but are more sensitive to noise and fees. Confirm trade frequency and fee drag fit your execution venue. Stop Loss Discipline: The 8% Stop Loss is the defining risk control. With the base plus three averaging orders, maximum deployed capital is ~1,250 USDT (12.5% of default equity); an 8% stop on that position bounds the worst-case loss to roughly 1% of equity. Keep the stop enabled β€” removing it converts this into an unbounded martingale short. Trend Risk: Fading overbought conditions works best in ranges and choppy regimes. In a strong, sustained uptrend the short can hit the 8% stop repeatedly. The RSI-crossing-down trigger reduces but does not eliminate this. Commission Calibration: The default 0.06% commission is calibrated for Bybit perpetual taker conditions. Match it to your exchange's actual fees.πŸ”· STRATEGY PROPERTIES Symbol: XAUTUSDT β€” short execution requires a margin or perpetual venue. Timeframe: 3M chart (3M RSI trigger). Test Period: March 16, 2026 β€” June 12, 2026 (~2.9 months). Initial Capital: 10,000 USDT. Order Size: 500 USDT base (5%) + 3 averaging orders of 250 USDT each (uniform). Max Capital Deployed: ~1,250 USDT per trade (~12.5% of equity). Commission: 0.06% per trade. Slippage: 3 ticks. Margin for Short Positions: 100% (1Γ— leverage, Isolated in source config). Indicator Settings: Default Configuration. Base Order: 500 USDT, Limit by default (Market toggle available). Entry Trigger: 3m RSI(9) Crossing Down 80. Averaging Orders: 3 with fixed deviations +1% / +2% / +3% above base entry; uniform 250 USDT sizing. Take Profit: 1.3% below average entry, with 0.3% trailing. Stop Loss: 8% above average entry (hard close). Strategy: Short Only.πŸ”· STRATEGY RESULTS ⚠️ Remember, past results do not guarantee future performance. This is a small (25-trade) sample β€” see the Sample Size note above. Net Profit: +124.66 USDT (+1.25%) Max Equity Drawdown: 83.27 USDT (0.83%) Total Closed Trades: 25 Percent Profitable: 100.00% (25 / 25) Profit Factor: n/a β€” no losing trades in this small sample (profit factor undefined)πŸ”· How to Use It: πŸ”Έ Adjust Settings: Open the strategy inputs and review the Base Order Size, the averaging-order count/deviation/size, the RSI trigger level, the Take Profit and Trailing percentages, and the Stop Loss. Defaults mirror the source DCA Bot configuration β€” recalibrate per asset and timeframe. πŸ”Έ Results Review: This configuration produced only 25 closed trades with no losers β€” far too few to be statistically meaningful. Extend the backtest window substantially and/or test across multiple assets before drawing any conclusion; expect a realistic win rate well below 100% over a larger sample. πŸ”Έ 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 averaging order, and exit β€” formatted for direct DCA Bot consumption.πŸ”· INDICATOR SETTINGS Base Order Size (USDT): USDT amount opened on the initial short. Use LIMIT for Base: Toggle between Limit (default) and Market entry. Averaging Orders per Trade: Number of safety orders (default 3). First AO Size (USDT): Size of each averaging order (uniform by default). Deviation to First AO (%) / Deviation Step Multiplier: Spacing of the AO ladder above base entry. Defaults to uniform +1% steps. Order Size Multiplier: Per-rung size scaling (1.0 = uniform). RSI Timeframe / Length / Crossing Down Level: The 3m RSI(9) crossing-down trigger for the base short. Take Profit (%) / Trailing (%): TP distance below average entry and the trailing retrace that closes the position. Stop Loss (%): Hard stop above average entry. DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload. Visualization: Toggle DCA Ladder, Avg / TP / SL 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