MT5 RSI: settings, 70/30 levels and the overbought trap

MT5 RSI: settings, 70/30 levels and the overbought trap

What RSI measures

RSI compares smoothed upward and downward price changes and expresses the relationship on a 0–100 scale. A high reading means recent gains dominate under the chosen calculation; it does not mean price is required to fall next. A low reading likewise does not establish a floor.

Add Relative Strength Index from Navigator's oscillator group. Record the period and applied price. A period of 14 is a useful familiar baseline for learning the display, not a universally optimal setting.

Overbought is a description, not an order

The familiar 70 and 30 levels are reference thresholds. In a persistent trend, RSI can remain beyond one of them while price continues. Selling every reading above 70 confuses an observation about recent momentum with a complete reversal strategy.

In a synthetic sequence of closed-bar RSI values [68,72,76,71,69], four different questions arise: when did RSI first cross above 70, how long did it stay above, when did it cross back below, and what did price do afterward? Those are different events and should not be mixed in one test.

Code a crossing, not repeated membership

For a closed-bar upward crossing of level L, compare the previous eligible RSI value at or below L with the latest eligible value above L. A condition that merely checks RSI > L stays true for multiple bars and potentially many ticks. Deduplicate alerts by signal-bar timestamp and direction.

With iRSI, check handle validity and the number of values actually copied before evaluating the condition. Decide how equality is treated and use the same rule in the chart, alert and backtest. See the alert guide for event identity.

Change one input and explain the consequence

A shorter period usually reacts more quickly and produces a noisier sequence; a longer period smooths changes. Applied price also matters: close and typical price are different inputs. Compare settings on the same timestamps instead of selecting whichever looks best at one turning point.

For an arithmetic illustration, average gains of 2 and average losses of 1 give a ratio of 2 and RSI of about 66.67. This is a synthetic calculation, not an expected market reading. The calculation needs explicit handling of zero-loss and flat-data cases when implemented from scratch.

A useful first exercise

Mark the first crossing, continuation and return inside the threshold for several sequences. Include cases where price continues against a proposed reversal. Record the values only after the chosen candle closes, then compare them after a chart restart.

Do not add divergence by eye and assume it was available at the pivot. The confirmed-pivot guide separates the pivot's location from the later time at which it becomes usable.

Sources and further reading

Back to top

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.

100% committed to following up on your delivery and support requests.

Free downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.21

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$149.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.7

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
FREE

EA Black Dragon [MQLume]

MQL5 / MT5Version v13.0

Trend-based entries with optional grid additions, side controls and virtual exits.

US$30.00FREE
FREE

Hamster Scalping [MQLume]

MQL5 / MT5Version v21.0

RSI entries with two ATR filters, configurable sessions and optional grid management.

US$30.00FREE
MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping