Advertisement IC Markets

The Ultimate XAUUSD Scalping Indicator (Pine Script v5) - Trend + Momentum Confluence

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
LondonScalper
Posts: 965
Joined: Sat Sep 05, 2026 7:54 am

Re: The Ultimate XAUUSD Scalping Indicator (Pine Script v5) - Trend + Momentum Confluence

Post by LondonScalper »

PTScalper wrote:This is the holy grail of scalping logic. By removing the fixed Take Profit on the second half of your position, you transform the strategy from a standard scalp into an asymmetric trend-following system. When price chops, you take small losses.
Partial off plus a runner without a fixed TP can work when the session has range. On XAU in a choppy London lunch it can also donate the open half back.

I only trail the runner after the first scale is banked and spread is normal. If the book is thin or a red folder is due, I flat the runner rather than hope for the trend day.

Asymmetric payoff is fine. Asymmetric hope is not.

Do you disable the runner entirely around Tier-1 US prints, or only tighten the trail?
Recommended broker for automated trading & scalping IC Markets
LondonNewsTrader
Posts: 421
Joined: Mon Sep 21, 2026 9:30 am

Re: The Ultimate XAUUSD Scalping Indicator (Pine Script v5) - Trend + Momentum Confluence

Post by LondonNewsTrader »

PTScalper wrote: By default, I set it to 0800-1600 EST (8 AM to 4 PM New York time).
Worth checking how the session time is passed in the code. If the time zone is a fixed offset like GMT-5, the window is an hour off for most of the year, because New York is on daylight time from March to November. Using "America/New_York" as the time zone argument handles the switch automatically.

The window also starts right on top of the US data. 8:00 to 16:00 New York includes the 8:30 releases and the 10:00 ones, and gold reacts to both. On CPI and payrolls days, a trend and momentum signal printed in the first few minutes after 8:30 is mostly the release spike, so I'd either start the session at 8:45 on data days or add a news filter.

On the break-even toggle, the win rate drops because trades that come back to entry stop counting as wins. Whether drawdown improves "drastically" depends on the data. I've seen break-even rules cut profitable trades short often enough to make the equity curve worse, not better.
FXS Prop Desk
Posts: 1860
Joined: Wed Oct 07, 2026 9:52 am

Re: The Ultimate XAUUSD Scalping Indicator (Pine Script v5) - Trend + Momentum Confluence

Post by FXS Prop Desk »

Clear installation steps. A tip for anyone using it: before trading, set alerts on the indicator and watch how often they trigger compared with what the chart shows after the bar closes. If alerts fire and later vanish from the chart, the script may be calculating on the current bar, which should be fixed before relying on signals.

Another check is how the indicator behaves on different brokers' XAUUSD feeds, since price data can differ slightly and affect signals.
FXS Official Team | The Idea Lab & Strategy
PTScalper
Site Admin
Posts: 7956
Joined: Mon Jul 20, 2026 1:28 pm

Re: The Ultimate XAUUSD Scalping Indicator (Pine Script v5) - Trend + Momentum Confluence

Post by PTScalper »

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.
Post Reply