Scalping Entry/Exit Indicator: The RSI 50 Line

Written by Dominic Walsh · Published · Last updated

The scalping entry/exit indicator keeps things deliberately small. It builds its own RSI over `RsiPeriod` bars, watches the 50 line, and marks the bar where the reading crosses it. Above 50 the average gains in the window outweigh the average losses. Below 50 the balance runs the other way.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 2: Scalping 50 Buy, Scalping 50 Sell
Alerts popup, push notification, email, sound
Inputs 7

What the Scalping entry/exit Indicator draws on the chart

Scalping 50 Buy places an aqua arrow where RSI crosses up through 50.

Scalping 50 Sell places a crimson arrow where the reading crosses back down.

Each arrow sits half a bar range clear of the candle, so it never covers the wick.

Nothing appears in the warmup region, where the internal buffer holds a neutral 50.

  • Scalping 50 Buy: arrow, aqua, arrow code 233
  • Scalping 50 Sell: arrow, crimson, arrow code 234
Scalping entry/exit indicator marking RSI crossings of the 50 line
Scalping entry/exit indicator marking RSI crossings of the 50 line

How the Scalping entry/exit Indicator calculates its values

Building the RSI in place

The code walks `RsiPeriod` bars back and sums the gains and losses from the close differences. rs is gain over loss, and the buffer takes 100 minus 100 over 1 plus rs. When the window holds no losing bar at all, the reading pins at 100. The default period is `14`.

Watching the 50 line

A buy needs the previous reading at or below 50 and the current one above it. A sell mirrors that. Fifty is the level where average gains and average losses balance exactly, so a crossing records the moment that balance tips one way.

Placing the mark

UpBuf takes low minus half the bar range. DnBuf takes high plus the same amount. Scaling the offset by the candle rather than by a fixed point count keeps the arrows readable on quiet bars and busy ones alike.

How to read the signals

A crossing is a balance shift, not a trend call.

Lower `RsiPeriod` gives more crossings and more noise with them.

Two marks close together usually mean the reading is hovering right at 50.

Pair it with something that describes structure, because this tool describes momentum alone.

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

`EnableAlerts` ships on with `EnablePopup` carrying the message. `EnablePushNotify`, `EnableEmail` and `EnableSound` are all off by default, and `SoundFile` names the clip. The guard allows one message per closed bar.

Every Scalping entry/exit Indicator input

Core settings

Setting What it does Default
RsiPeriod Bars in the RSI window, default `14`. Shorten it for a faster reading and far more crossings. 14

Alert settings

Setting What it does Default
EnableAlerts Master alert switch, default `true`. on
EnablePopup Terminal popup, default `true`. on
EnablePushNotify Mobile push, default `false`. off
EnableEmail Mail delivery, default `false`. off
EnableSound Sound playback, default `false`. off
SoundFile Clip played when sound is on, default `alert.wav`. alert.wav
Scalping entry/exit indicator inputs: RsiPeriod and the alert switches
Scalping entry/exit indicator inputs: RsiPeriod and the alert switches

Settings that fit your chart

A 50-line crossing fires often, which suits short holding periods. On M5 and M15 the marks come thick and work best as timing inside a plan you already have. On H1 they thin out and each one covers more ground. Above H4 the tool drifts away from the job its name describes.

When the Scalping entry/exit Indicator fails

A reading hovering around 50 produces marks in both directions within a few bars.

The value pins at 100 when the window holds no losing bar, which flattens the signal during a straight run.

There is no trend filter, so a crossing against the larger move looks identical to one with it.

Copy the compiled Scalping entry/exit 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 Scalping entry/exit Indicator for MT4 and MT5

The zip holds the compiled Scalping entry/exit 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 RsiPeriod at 14 measure here?

Fourteen bars of close-to-close change, split into gains and losses. The code averages each side, divides one by the other and folds the ratio into a 0 to 100 reading. Shorten the period and the reading swings harder, which produces many more crossings of the 50 line.

Why does the Scalping 50 Buy plot use 50?

Because it is the balance point. At 50 the average gain across the window equals the average loss, so neither side has the upper hand. A crossing therefore records the bar where that balance tipped. Levels like 70 and 30 play no part in this build.

How far from the bar does the Scalping 50 Buy arrow sit?

Half the bar range below the low. The code takes low minus high-minus-low times 0.5, so a tall candle pushes the mark further away than a small one. That keeps the arrow visible without a fixed point setting to tune per instrument.

Does a shorter RsiPeriod suit M5 better?

It gives more marks, which is not the same thing. On M5 the default `14` already crosses 50 several times an hour. Dropping to 7 roughly doubles that. Most traders get more from raising the period on fast charts than from lowering it.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Scalping entry/exit 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