TMA Asymmetric Bands Indicator for MT4 – Download & Installation Guide

In this post we explore a powerful custom indicator for MetaTrader 4 (MT4) called “ TMA asymmetric bands” developed by Mladen. This indicator brings together three technical components:

  • A smoothed momentum oscillator (RSX)
  • A moving average (MA) or TMA (Triangular Moving Average) applied to the oscillator
  • Asymmetric dynamic bands around that average

What the indicator does

Here’s a breakdown of how the indicator works:

  1. RSX calculation – Instead of the classic Relative Strength Index (RSI), the code computes an RSX-style oscillator (Relative Strength Xtra/Quality) that aims to smooth out noise and deliver cleaner momentum signals.
  2. Signal line (MA) – The RSX line is further smoothed by a simple MA (or the user can choose TMA) of the RSX values (SignalPeriod & SignalMethod parameters).
  3. TMA applied to oscillator – The indicator also computes a triangular moving average (TMA) of either the RSX or of the MA of RSX (controlled by TmaApplyTo parameter).
  4. Asymmetric bands – Around the TMA line it plots upper and lower band buffers (upBuffer/dnBuffer) based on deviations. Uniquely it uses separate variance calculations for positive and negative deviations (wrkBuffer[r][wuBuffer] & wdBuffer) which makes the bands asymmetric (the upper and lower bands respond differently to momentum shifts).
  5. Trend detection & color buffers – It also uses a “trend” buffer that tracks whether the RSX is above or below its signal line, and two buffers (rsxDa / rsxDb) that plot red or green/blue lines depending on the trend (so you see visually when momentum shifts).

Download the Indicator for MT4

You can download both the ready-to-use EX4 file and the editable MQ4 source code for free below.

🧭

RSX + MA + TMA Asymmetric Bands

Complete Installation Guide for MetaTrader 4

MT4 Compatible

Follow these simple steps to install and configure the RSX + MA + TMA Asymmetric Bands indicator on your MetaTrader 4 platform. This powerful oscillator combines RSX smoothing with adaptive bands for superior trend analysis.

1

Download the Indicator

  • Download the .mq4 or .ex4 file for the indicator
  • If you have the source code, open it in MetaEditor and compile it to create the .ex4 file
  • Ensure the file is not corrupted and is from a trusted source
2

Open the MT4 Data Folder

  1. Launch your MetaTrader 4 terminal
  2. Click File → Open Data Folder from the menu bar
  3. Navigate to MQL4 → Indicators
💡 Quick Tip: You can also press Ctrl + Shift + D as a keyboard shortcut to open the data folder directly.
3

Paste the Indicator File

Copy the downloaded .ex4 or .mq4 file into your Indicators folder:

C:\Users\YourName\AppData\Roaming\MetaQuotes\Terminal\InstanceID\MQL4\Indicators

Replace YourName with your Windows username and InstanceID with your MT4 installation ID.

4

Restart MT4 or Refresh Navigator

You have two options to load the new indicator:

  • Option A: Completely restart the MetaTrader 4 terminal
  • Option B: Right-click inside the Navigator panel and choose Refresh

The indicator will now appear under Indicators → Custom in the Navigator window.

5

Attach to a Chart

  1. Open any chart (e.g., EURUSD, XAUUSD, Volatility 75 Index)
  2. In the Navigator panel, expand Indicators → Custom
  3. Find RSX + MA + TMA Asymmetric Bands in the list
  4. Drag and drop it onto your chart
  5. The input settings window will pop up automatically
6

Adjust Indicator Settings

Default Parameters

RsxPeriod 14 (controls RSX smoothing)
SignalPeriod 5 (moving average signal line)
SignalMethod MODE_SMA (Simple Moving Average)
TmaHalfLength 12 (triangular smoothing length)
TmaApplyTo 0 (apply to RSX directly)
BandsDeviations 2.8 (band width multiplier)

Modify these settings according to your trading instrument and timeframe, then click OK.

7

Customize the Appearance

Make the indicator visually appealing and easy to read:

  1. Right-click inside the indicator sub-window
  2. Select Indicators List
  3. Double-click on RSX + MA + TMA to open properties
  4. Go to the Colors tab

Recommended Color Scheme

RSX Line DeepSkyBlue • Width: 2px
Signal Line Gold • Width: 2px
Upper/Lower Bands Red/LimeGreen • Width: 2px
Middle Line DimGray • Style: Dotted
8

Save as a Template

Save your configuration for easy reuse across multiple charts:

  1. Right-click anywhere on the chart
  2. Select Template → Save Template
  3. Name it RSX_TMA_Bands.tpl
  4. Click Save

Now you can apply this template to any chart with one click!

⚙️

Optional: Add Custom Alerts

Want MT4 to alert you when RSX crosses its signal line or hits a band? Follow these steps:

  1. Open the indicator source code in MetaEditor
  2. Add alert code in the appropriate section:
// Add these lines in the main calculation loop
if (rsx[i] > signal[i] && rsx[i+1] <= signal[i+1]) 
   Alert("RSX Buy Signal on ", Symbol());

if (rsx[i] < signal[i] && rsx[i+1] >= signal[i+1]) 
   Alert("RSX Sell Signal on ", Symbol());
  1. Click Compile (F7) in MetaEditor
  2. Reload the indicator on your chart

Pro Trading Tips

  • Use on H1–H4 timeframes for smoother, more reliable signals
  • Combine with price action patterns or support/resistance zones for better confirmation
  • Avoid cluttering your chart with too many indicators – keep it clean and focused
  • For synthetic indices (e.g., Volatility 75, Crash 500), try RsxPeriod = 20 and BandsDeviations = 2.0–2.5
  • Oversold/Overbought: Enter when RSX bounces from the bands, not just when it touches them
  • Consider using the TMA middle line as a dynamic equilibrium level for exits
  • Backtest thoroughly before using in live trading – every market behaves differently
  • Pair with proper risk management: never risk more than 1-2% per trade
TMA Asymmetric Bands

Why use RSX + MA + TMA asymmetric bands?

Here are the main benefits:

  • Reduced noise: Classic RSI is prone to whipsaws and many false signals. The RSX style oscillator is designed to filter that and deliver a cleaner line.
  • Better trend/momentum clarity: With the MA (or TMA) applied to the RSX, you get a signal line for crossovers (RSX vs signal). Crossovers often help spot momentum change.
  • Dynamic band context: The asymmetric bands provide context – when price oscillator stretches far above the TMA (upper band) or falls far below (lower band), it suggests strong momentum or potential reversal.
  • Visual trend cues: The indicator uses buffers to change colour when momentum shifts. That helps visually identify trend states (bullish vs bearish) without relying purely on price.
  • Flexibility: The user has parameters: RSX period, price source, signal period/method, TMA half-length, choice of applying TMA to RSX or to MA of RSX, and band deviations. That allows adaptation to multiple timeframes and assets.

Key parameters explained

Here are the main external inputs and what they mean:

  • RsxPeriod (=14 by default): The look-back period for the RSX oscillator. A shorter period = more sensitivity, more noise; longer period = smoother/later signals.
  • RsxPrice (=0 by default): Price source (0 might mean close price, depending on implementation).
  • SignalPeriod (=5): The period for the moving average of RSX to create a signal line.
  • SignalMethod (=MODE_SMA): Type of MA used for the signal line (e.g., SMA, EMA, etc.).
  • TmaHalfLength (=12): This controls the TMA smoothing: full length = 2×TmaHalfLength+1. A higher value = smoother average, less responsive.
  • TmaApplyTo (=0 or 1): If 0 → apply TMA to RSX values; if 1 → apply TMA to the MA of RSX (signal). Choosing 1 may produce smoother bands around the signal rather than raw oscillator.
  • BandsDeviations (=2.8): Multiplier for band width. The indicator uses the squared deviations (variance) separately for positive and negative deviations, takes square root → gives standard‐deviation style measure, and multiplies by this parameter. Higher value = wider band (less frequent breaks).

Understanding these parameters is key before you deploy it; some adjustment per asset/timeframe is advisable.

How to interpret & trade it

Here’s how you might use the indicator in practice:

Interpretation

  • When RSX (blue line) crosses above its signal line (yellow), that signals increasing bullish momentum → trend buffer becomes +1, colour shift likely to green/blue.
  • When RSX crosses below the signal, bearish momentum takes over → trend = -1, colour shift to red.
  • The TMA line (tmBuffer) defines a “centre” for the oscillator. The asymmetric bands (upBuffer & dnBuffer) show how far the oscillator has deviated.
    • RSX values nearing the upper band suggest strong momentum — could be continuation or exhaustion.
    • RSX values nearing the lower band suggest strong bearish momentum or oversold/turning zone.
  • Because the bands are asymmetric, the lower band may behave differently (wider or narrower) than the upper band depending on recent deviations. That helps adapt to trending vs ranging context.

Possible trading strategies

  • Momentum entry: Enter when RSX crosses the signal line in the direction of trend and perhaps touches or breaks a band. Example: RSX crosses above signal → momentum turning bullish → price/oscillator near lower band and moving up → go long.
  • Band breakout: If RSX breaks above upper band, that can indicate very strong momentum; either ride the trend or watch for possible exhaustion/reversal.
  • Band reversion: If RSX climbs sharply to the upper band and then fails or reverses, that may signify exhaustion. Similarly for lower band in down moves.
  • Trend filter: Use the “trend” buffer (trend=+1 or -1) to filter only trades in the direction of the momentum. I.e., only take long signals when trend=+1, short only when trend=-1.
  • Multi-timeframe confirmation: Use the indicator on a higher timeframe to establish the trend buffer, then on a lower timeframe to fine-tune entries. Because the indicator is smoother, it can reduce false signals when markets are noisy.
JustMarkets

Best practices & caveats

  • Combine with price structure – No indicator is perfect. Use support/resistance, price action, volume to validate signals (especially when RSX touches band).
  • Beware ranging markets – Even smoothed oscillators can produce false breaks in a non-trending market. The asymmetric bands help, but still consider market context.
  • Parameter tuning per instrument – A one-size-fits-all setting may not work for all assets/timeframes. For example, stock indices might need a longer RSXPeriod, while forex pairs in M5 might need shorter.
  • Use stop-loss/management – When RSX stretches far beyond a band, a strong move may be underway, but reversal risk increases. Have risk controls.
  • Understand lag vs sensitivity trade-off – A higher TMA half-length (smoother) means fewer false signals but slower reaction. If you need quicker signals (e.g., intraday), reduce TmaHalfLength but expect more noise.
  • Test historically – Back-test and forward-test the indicator on the specific instrument and timeframe you intend to trade. Use alerts when RSX crosses signal or touches bands.
  • Not standalone – Always use in conjunction with other elements (trend filter, price behavior). The indicator gives good information, but you still need a trading plan

Summary

The “RSX + MA + TMA asymmetric bands” indicator by Mladen is a sophisticated tool that blends a smoothed momentum oscillator (RSX), a signal moving average, and asymmetric dynamic bands around a triangular moving average, giving traders:

  • Cleaner momentum signals
  • Visual trend/momentum context with bands
  • Flexibility to adapt to different assets and timeframes
  • Better filter against noise and whipsaw

While no indicator is a magic bullet, when used properly—as part of a broader strategy with price structure, risk management and confirmation—it can enhance the clarity of entries/exits and improve trade discipline.

Download the Indicator for MT4

You can download both the ready-to-use EX4 file and the editable MQ4 source code for free below.

Share your love
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments