Fixed 30 and 70 levels ignore how far RSI usually swings. The RSI TMA centered bands indicator wraps RSI in bands built from a centered triangular average and its mean deviation. Because a centered band redraws near the right edge, the marks come from a second band that only looks backward.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Separate window |
| Plots | 6: RSI, TMA Center, Upper Band, Lower Band, Buy, Sell |
| Alerts | popup, push notification, email, sound |
| Inputs | 13 |
What renders
An RSI line, three band lines and marks in a pane.
`RSI` traces gold at width 2.
`TMA Center` traces deep sky blue.
`Upper Band` traces tomato.
`Lower Band` traces lime green.
`Buy` and `Sell` sit on the RSI line.
- RSI: line, gold, width 2
- TMA Center: line, deep sky blue, width 1
- Upper Band: line, tomato, width 1
- Lower Band: line, lime green, width 1
- Buy: arrow, lime, width 2, arrow code 233
- Sell: arrow, red, width 2, arrow code 234

From price to plot
RSI
`RsiPeriod` `14` uses Wilder’s averaging of closes.
Centered bands
`TmaHalfLength` `10` weights RSI over ten bars each side, 21 in all, and `BandMultiplier` `1.6` sets the width in mean deviations. The newest ten bars redraw.
Signal band
`SignalPeriod` `14` builds a backward-only band. A buy prints when RSI climbs back above its lower edge, a sell when it drops below the upper.
Putting it to work
Gold outside the bands means a stretched reading.
Bands widen when RSI swings harder.
The last ten bars of each band redraw.
Marks come from the hidden backward band.
Marks never repaint.
Guides sit at 30, 50 and 70.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
Band re-entries from the backward band report once per closed bar. `EnableAlerts` controls them, and the popup is the single route on when first loaded.
Every Rsi Tma Centered Bands Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
RsiPeriod |
RSI period (Wilder). RSI length, `14`. | 14 |
TmaHalfLength |
Centered TMA half-length (window = 2*half+1). Bars each side of the centre, `10`. | 10 |
SignalPeriod |
Backward band period (non-repaint signals). Window for the backward signal band, `14`. | 14 |
BandMultiplier |
Band width in mean-abs-deviations. Band width in mean deviations, `1.6`. | 1.6 |
OverboughtLevel |
Overbought reference level. Upper guide, `70`. | 70 |
MidLevel |
Mid reference level. Middle guide, `50`. | 50 |
OversoldLevel |
Oversold reference level. Lower guide, `30`. | 30 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
Master alert switch. Master alert switch, `true`. | on |
EnablePopup |
Popup alert. Popup, `true`. | on |
EnablePushNotify |
Push to mobile MetaTrader. | off |
EnableEmail |
Email alert. | off |
EnableSound |
Sound alert. Speaker, `false`. | off |
SoundFile |
Sound file. | alert.wav |

Matching chart to settings
Adaptive RSI bands suit any chart. EURUSD H1 is the reference chart, with re-entries daily. On M15 they come several times a session. On D1 a re-entry marks a pullback within the larger trend.
What to be wary of
The visible bands redraw at the right edge.
Marks may not line up with the drawn bands.
Re-entries repeat often in ranges.
Only a popup reports by default.
Copy the compiled Rsi Tma Centered Bands 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.
Background reading on the method behind the Rsi Tma Centered Bands Indicator: Relative Strength Index at Investopedia, Mean absolute deviation on Wikipedia.
Download the Rsi Tma Centered Bands Indicator for MT4 and MT5
The zip holds the compiled Rsi Tma Centered Bands 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.
FAQ
Why does the TMA Center line redraw?
A centered average uses ten bars on each side of every point. The newest ten bars have no future bars yet, so their values change as new bars arrive.
Do the Buy and Sell marks repaint?
No. They come from a separate band that only uses past bars, set by `SignalPeriod`. Once a mark prints on a closed bar, it stays.
Why might a mark not touch the drawn Lower Band?
The drawn band is centered and the signal band only looks backward, so near the right edge the two differ. The mark always follows the signal band, not the drawn one.
What does BandMultiplier 1.6 control?
The width of both bands, measured in mean absolute deviations of RSI around the centre. Raise it for fewer, more extreme re-entries, or lower it for more frequent marks.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Rsi Tma Centered Bands Indicator as one input. Always backtest before trading live.
Category: this is part of our Oscillators collection. Browse more Oscillators for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- For background on this concept, see House stock on Wikipedia.
- For broader market context, see Why Analyze Securities at StockCharts ChartSchool.
