MA Rainbow Indicator for MT4/MT5 : Guide with trading examples

The MT4 Rainbow MA technical indicator, based on moving averages, aims to follow the trend. The MA Rainbow indicator in MT5 also identifies uptrends and downtrends, assisting traders in decision-making based on these results. In this guide, i will explain the Rainbow MA indicator, available on MetaTrader 4, MetaTrader 5, and TradingView, and show how to use it properly and interpret its results.

MA Rainbow Indicator FAQ

What is the rainbow moving average indicator?

Also known as the “Simple Moving Averages Rainbow indicator” or the “Averages Rainbow Indicator”, the Rainbow MA indicator serves in technical analysis to identify the current trend. It enables traders using the MT4 Rainbow MA indicator to detect an asset’s current price trend or predict future changes. Moreover, the indicator presents several simple moving averages with varying time period lengths. Each moving average line features a different color, resulting in the name “MA Rainbow” for the indicator.
A graphical representation of the MA Rainbow Indicator on a stock chart.

How does it work?

The MA rainbow indicator for MT5 contains basically 10 moving averages with different periods. The periods are fully customizable depending on the user’s preferences. However, a 25-period gap is advised so that the MA values could increase by 25 each time until reaching 250 days. Furthermore, there are 255 trading days in a year but we’ll take into consideration a variance of 5 days.

The goal is to smooth the moving average line as much as possible to see the asset’s price clearly. In other words, a 25-day moving average shows a lot of fluctuations which is useful for speculation. However, a 150-day or 250-days moving averages are smoother and therefore, more adequate for mid and long-term investors.

Furthermore, as this indicator is fully customizable, there are a few people that prefer to display only 5 moving averages which are 10/20/50/100/200. Also, some other people prefer to scale up and replace the SMA with EMA or WMA, or even HMA.

Infographic explaining the mechanism of the Rainbow Indicator.

How do you trade with this indicator?

It is the most simple and easy-to-use one. This strategy is based on observing the chart with the MA rainbow applied to it. The decision rules are as follows:

Strategy 1: Price & Moving Averages position.

If the candlesticks are above the moving average lines, then the trend is bullish. Therefore, the trader is advised to buy the asset and go long on it.

However, if the price is below the moving average lines, or crossing most of them, then the trend is bearish. Therefore, the trader should sell the asset or go short on it.

Strategy 2: Moving Averages Crossovers.

This strategy of moving averages ranks among the most famous. It involves monitoring SMA1 and either SMA10 or SMA5, based on user preference.

If the SMA1 (Short-term) crosses and rises above the SMA10 or SMA5 (long-term), we consider it a buy signal, also known as the “Golden Cross”. Conversely, if the SMA1 (Short-term) crosses and falls below the SMA10 or SMA5 (long-term), we interpret it as a sell signal, known as the “Death Cross”.

Strategy 3: Usage as Support & Resistance.


You can also use the numerous moving averages in the Rainbow MA indicator as support and resistance levels. Thus, traders identify MAs below the price as support levels and those above the price as resistance levels.

Moreover, shorter moving averages generate weaker resistance and support levels. Therefore, if the price rises above the MA functioning as resistance, the bulls take control and the price will likely continue to increase. On the other hand, if the price falls below the MA acting as support, we can expect a probable downtrend.

Graphic depicting trading decisions with the Rainbow Indicator.

Trading example

We have detected 4 important points using the Rainbow MA indicator.  First of all, the red line stands for the SMA 1 which is a 25-day moving average. We can observe that the candlesticks went above the SMA1 which indicates that the price is rising. 

 As for the second point, we could see that the SMA 10 which stands for the 250-day moving average could be used as the resistance level before the 16th of November. The price broke through the resistance level and went above it indicating a continuation of the uptrend which was quite towering.

However, this uptrend was only confirmed later when the SMA1 crossed the SMA10 forming a golden cross. By the end of the year, the price went below the SMA1 which indicated the start of a downtrend.

This example explains the importance of using simultaneously the 3 strategies mentioned above for a better trading experience and more reliable observations.

Screenshot of the Rainbow Indicator being used on the MetaTrader 4 platform.


  • The Rainbow MA indicator is a combination of moving averages with different lengths used to detect the trend and predict future movements.
  • The indicator offers full customization; thus, users can adapt the length of each moving average according to their preferences. Typically, some users favor using 10 successive MAs, while others opt for only 5 MAs.
  • There are different trading strategies used to interpret the rainbow MA results. However, the main 3 ones are trading based on: the price & MA position, using the MA as support and resistance and trading using MA’s crossovers.