Stoch RSI + RSI Auto Buy Bot (XAUUSD 20 USD SL + Break-Even) WS — Strategy by dove8141

By dove8141

Performance Metrics

Description

Strategy NameStochastic RSI + RSI Auto Buy Bot (XAUUSD) with $20 Stop Loss & Break-EvenMarketInstrument: XAUUSD (Gold)Direction: Buy-only (long bias)Typical Timeframes: M5 – M15 (can be adapted to M30)Gold tends to respect momentum reversals and overbought/oversold conditions well on lower timeframes, which is why RSI-based confirmation works nicely here.Indicators UsedRSI (Relative Strength Index)Period: Commonly 14Used to identify oversold conditions and momentum shiftStochastic RSIUsed for precise entry timingConfirms RSI signals and avoids early entriesEntry Conditions (BUY)All conditions must align:RSI ConditionRSI is below 30 (oversold zone)RSI starts turning upward or crosses above a confirmation level (e.g. 30–35)Stochastic RSI ConditionStoch RSI is in oversold zone (below 20)%K crosses above %D (bullish crossover)Market Context (Filter)Prefer price near support, previous low, or after a pullbackAvoid buying during high-impact news spikesOnce these conditions align, the bot executes a market buy.Risk ManagementThis is the backbone of the strategy.Stop LossFixed $20 Stop LossDesigned to survive normal XAUUSD volatility while protecting capitalBreak-Even RuleWhen price moves X pips / dollars into profit (example: +$15 or +1R):Stop Loss is automatically moved to entry priceTrade becomes risk-freeThis prevents winning trades from turning into losers and allows the bot to let profits run psychologically and mechanically.Take Profit LogicOne of the following (depending on bot setup):Dynamic TPExit when RSI reaches overbought (65–70)Or when Stoch RSI exits overboughtPartial Close (Optional)Close part of the position at 1RLet the rest run with break-even or trailing stopWhy This Strategy WorksRSI identifies exhausted sellersStoch RSI provides precise timingFixed SL keeps losses controlledBreak-even protects capitalGold’s volatility amplifies clean momentum reversalsThis combo filters weak entries and focuses only on high-probability bounce trades.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView