XAUUSD Scalping Indicator: A Cross With An RSI Side Check

Written by Dominic Walsh · Published · Last updated

The xauusd scalping indicator pairs a quick crossover with a momentum side check. Two exponential averages at `FastEmaPeriod` and `SlowEmaPeriod` supply the trigger. A short RSI then has to sit on the matching side of `RsiMid`. Arrow spacing scales with ATR, which matters on gold.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 4: Fast EMA, Slow EMA, Scalp Buy, Scalp Sell
Alerts popup, push notification, email, sound
Inputs 12

What the Xauusd Scalping Indicator draws on the chart

Fast EMA is the gold line and Slow EMA is the dodger blue one.

Scalp Buy places a lime arrow at a crossing up with RSI above the midline.

Scalp Sell places a red arrow for the mirror case.

Mark distance takes `ArrowAtrMult` `0.6` of an ATR.

  • Fast EMA: line, gold, width 2
  • Slow EMA: line, dodger blue, width 2
  • Scalp Buy: arrow, lime, width 2, arrow code 233
  • Scalp Sell: arrow, red, width 2, arrow code 234
XAUUSD scalping indicator on EURUSD H1 with filtered crossover entries
XAUUSD scalping indicator on EURUSD H1 with filtered crossover entries

How the Xauusd Scalping Indicator calculates its values

The crossing

iMA supplies exponential averages at `FastEmaPeriod` `5` and `SlowEmaPeriod` `13`, for the current bar and the previous one. crossUp needs fast at or below slow before and above it now.

The momentum side check

iRSI runs at `RsiPeriod` `7`. A buy needs the reading above `RsiMid` `50.0`, and a sell needs it below. This is a side test rather than an extreme test, so it filters direction rather than exhaustion.

Scaling the mark

atr reads iATR at `AtrPeriod` `14`. off then takes `ArrowAtrMult` times that value. On gold a fixed point offset would vanish behind the candle, which is exactly why the scaling exists here.

How to read the signals

The two lines show whether a crossing was even close.

A missing mark at a visible crossing means RSI sat on the wrong side.

Marks scale with volatility, so they stay readable on gold and on a currency pair.

A 5 and 13 pair crosses often, which the name expects.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

Alerts run through `EnableAlerts`, which is true out of the box, and `EnablePopup` delivers the text. `EnablePushNotify`, `EnableEmail` and `EnableSound` all begin false. `SoundFile` picks the clip. One entry message follows each closed bar.

Every Xauusd Scalping Indicator input

Core settings

Setting What it does Default
FastEmaPeriod Fast EMA (direction). Fast average length, default `5`. 5
SlowEmaPeriod Slow EMA (direction). Slow average length, default `13`. 13
RsiPeriod RSI momentum filter period. Length of the momentum filter, default `7`. 7
RsiMid RSI midline (buy>mid / sell<mid). Midline the filter tests against, default `50.0`. 50.0
AtrPeriod ATR period (arrow offset scaling). ATR length behind the mark spacing, default `14`. 14

Display settings

Setting What it does Default
ArrowAtrMult Arrow offset as fraction of ATR. Mark distance in ATR units, default `0.6`. 0.6

Alert settings

Setting What it does Default
EnableAlerts Master switch for the scalp entry alerts, default `true`. on
EnablePopup Terminal dialog on a scalp entry, default `true`. on
EnablePushNotify Phone push on a scalp entry, default `false`. off
EnableEmail Mail delivery on a scalp entry, default `false`. off
EnableSound Sound playback on a scalp entry, default `false`. off
SoundFile Wav clip for the entry alert, default `alert.wav`. alert.wav
XAUUSD scalping indicator inputs: FastEmaPeriod, SlowEmaPeriod, RsiPeriod, RsiMid
XAUUSD scalping indicator inputs: FastEmaPeriod, SlowEmaPeriod, RsiPeriod, RsiMid

Settings that fit your chart

The name points at gold, and the ATR scaling is what makes that practical. EURUSD H1 is the reference chart for the screenshots, where the same settings behave calmly. On M5 the pair crosses several times an hour. On H4 the crossings turn scarce and the filter blocks fewer of them.

When the Xauusd Scalping Indicator fails

A side check at 50 is weak. RSI spends much of its time near the midline.

Two averages five and thirteen bars apart cross constantly in a range.

Both the averages and the momentum reading come from the same closes.

Copy the compiled Xauusd Scalping Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Download the Xauusd Scalping Indicator for MT4 and MT5

The zip holds the compiled Xauusd Scalping Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does RsiMid at 50.0 filter?

Crossings with momentum pointing the other way. A buy needs the seven-bar reading above 50 as well as the crossing. It is a side test rather than an extreme test, so it removes direction conflicts rather than exhaustion.

Why does ArrowAtrMult scale the marks?

Because gold candles dwarf currency candles. A fixed point offset that clears a EURUSD bar would sit inside a gold one. At `0.6` the mark always keeps about six tenths of a typical bar range from the wick.

Does RsiPeriod at 7 react fast enough?

It reacts very fast, which suits a five and thirteen crossover. The trade is that a seven-bar reading crosses 50 often, so the filter blocks less than a longer setting would. Raise it to 14 for a firmer check.

What do the Fast EMA and Slow EMA lines add?

Visibility. The arrows tell you when both conditions passed, and the lines show you how close a rejected crossing was. Plotting them makes it obvious when the RSI check is doing the blocking.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Xauusd Scalping Indicator as one input. Always backtest before trading live.

Category: this is part of our Signal and Forecast collection. Browse more Signal and Forecast for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment