Skip to content
All library documents

RSI Mean-Reversion Entries with Fixed Gold Scalping Exits

Article TradingView scripts

Summary

This XAUUSD scalping strategy uses a 14-period RSI to look for short-term overextension: it opens a long when RSI falls below 30 and a short when RSI rises above 70, provided the strategy is flat. It sets a take-profit distance of 10 minimum ticks and a stop distance of 5 minimum ticks by default, with inputs allowing the RSI thresholds and exit distances to be changed. The script also plots entry markers and RSI zones, displays strategy statistics, and provides entry alerts.

The accompanying description characterizes the approach as counter-trend and says it may fare better in ranging or mildly trending sessions, with weaker behavior in strong directional markets or around major news. It recommends accounting for commission and slippage and forward testing, but provides no verified performance evidence. The code’s exit prices are recalculated from the current close while a position is open, rather than being anchored to the entry price as the prose claims. Its displayed risk-to-reward ratio is also inconsistent with the default target and stop distances. Results therefore require careful implementation and cost review before interpretation.

Key ideas

  • The strategy buys when RSI is below its oversold threshold and sells short when RSI is above its overbought threshold.
  • By default, the RSI lookback is 14 periods, with thresholds at 30 and 70.
  • Default exits use a 10-tick target and a 5-tick stop, although the code recalculates exit prices from each bar’s close.
  • The description warns that counter-trend entries may struggle during strong directional moves and major news.
  • No performance results are supplied, and trading costs should be included in any evaluation.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.