Stoch RSI + RSI Auto Buy Bot (XAUUSD 20 USD SL + Break-Even) WS Strategy Name
Stochastic RSI + RSI Auto Buy Bot (XAUUSD) with $20 Stop Loss & Break-Even
Market
Instrument: 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 Used
RSI (Relative Strength Index)
Period: Commonly 14
Used to identify oversold conditions and momentum shift
Stochastic RSI
Used for precise entry timing
Confirms RSI signals and avoids early entries
Entry Conditions (BUY)
All conditions must align:
RSI Condition
RSI is below 30 (oversold zone)
RSI starts turning upward or crosses above a confirmation level (e.g. 30–35)
Stochastic RSI Condition
Stoch 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 pullback
Avoid buying during high-impact news spikes
Once these conditions align, the bot executes a market buy.
Risk Management
This is the backbone of the strategy.
Stop Loss
Fixed $20 Stop Loss
Designed to survive normal XAUUSD volatility while protecting capital
Break-Even Rule
When price moves X pips / dollars into profit (example: +$15 or +1R):
Stop Loss is automatically moved to entry price
Trade becomes risk-free
This prevents winning trades from turning into losers and allows the bot to let profits run psychologically and mechanically.
Take Profit Logic
One of the following (depending on bot setup):
Dynamic TP
Exit when RSI reaches overbought (65–70)
Or when Stoch RSI exits overbought
Partial Close (Optional)
Close part of the position at 1R
Let the rest run with break-even or trailing stop
Why This Strategy Works
RSI identifies exhausted sellers
Stoch RSI provides precise timing
Fixed SL keeps losses controlled
Break-even protects capital
Gold’s volatility amplifies clean momentum reversals
This combo filters weak entries and focuses only on high-probability bounce trades.
Стратегия Pine Script®






















