Update: Official GitHub Repository & Code Maintenance (v2.1)
To make version tracking and copy-pasting into the TradingView Pine Editor cleaner (without forum formatting quirks), I have mirrored the full source code for the
Ultimate XAUUSD Scalping Indicator (Pine Script v5) on GitHub under the MIT license:
GitHub Repository: https://github.com/tucekpav-cloud/xauusd-scalping-indicator-pinescript
What was fixed and improved in the latest Pine Script v5 build:
- Fixed SL/TP tracking on high-volatility XAUUSD wicks: On M1 and M5 gold charts, breakout signal candles often print long wicks that touch the newly calculated ATR stop-loss or take-profit level on the same bar. Reordering the hit-check logic before new signal assignment prevents the SL/TP target lines from disappearing on the entry candle.
- Dynamic dashboard labels: The top-right status table now updates the RSI and ATR period labels automatically whenever you change the default inputs in TradingView.
- Clean documentation & installation guide: Full setup instructions and parameter notes are included directly in the repository README.
Quick execution reminder for M1 / M5 Gold Scalping:
Because this script relies on
9/21 EMA crossovers filtered by the
200 EMA macro trend and
RSI momentum confluence, signal quality depends heavily on session liquidity. The cleanest moves typically occur during the
London Open and
London–New York overlap, where ECN raw spreads on XAUUSD stay tight enough to support ATR-based scalping stops. Avoid taking fresh automated alerts right into Tier-1 US macro releases (CPI, NFP, FOMC).
If you are running custom ATR multipliers, different Risk/Reward ratios, or testing this setup on
M1 vs. M5, post your parameters or chart feedback below. Any useful tweaks (like a built-in session time filter or higher-timeframe trend confirmation) will be pushed directly to the next GitHub release.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.