индикатор ma crossover signal на форексе / The MA Crossover Alerts Indicator For MT4 - Download FREE | IndicatorsPot

Индикатор Ma Crossover Signal На Форексе

индикатор ma crossover signal на форексе

How to Detect a Crossover of Indicators with MQL4

Many trading strategies are based on a crossover of indicators. For example, if you are using a fast moving average and a slow moving average, your entry signal is triggered when the fast MA crosses the slow MA. It is important to learn how to detect a crossover of indicators with MQL4 language if you want to create your own expert advisor or indicator. This guide shows how to detect these events.

It is useful to see some examples of crossover first, so that you can have a better idea of where you can apply this knowledge; the principle remains the same.

Example of Moving Average Crossover
Example of Stochastic Oscillator Crossover - Main vs. Signal Lines
Example of MACD Crossover (Main with Signal)

It doesn't matter which indicator or indicators you are going to examine, the rule is always the same and, generically, we can see the lines as follows:

One Indicator Crosses Another from Below
One Indicator Crosses Another from Above

To code an MQL4 program to spot a crossover, we need to translate everything into the language of mathematics. We can get the values of Indicator 1 and Indicator 2 at specific points in time and from there we will need to compare these values.

Indicator Values at Points in Time

We define:

  • I1(t1) as the value of Indicator 1 at the instant t1.
  • I1(t2) as the value of Indicator 1 at the instant t2.
  • I2(t1) as the value of Indicator 2 at the instant t1.
  • I2(t2) as the value of Indicator 2 at the instant t2.

With these values, we can establish the rules for a crossover:

  • Indicator 2 crosses Indicator 1 from below if, I2(t1) is less than I1(t1) and I2(t2) is greater than I1(t2).
  • Indicator 2 crosses Indicator 1 from above if, I2(t1) is greater than I1(t1) and I2(t2) is less than I1(t2).

We can see a simple example of MQL4 code that detects a crossover of a fast moving average with a slow moving average.

// Define two variables that can become true in case of a verified crossover:bool CrossToBuy =false;bool CrossToSell =false;// Define the periods of the two indicators:int MASlowPeriod =50;int MAFastPeriod =10;// Define a function to detect a crossover:void CheckMACross()&#;    CrossToBuy =false;    CrossToSell =false;        // iMA is the function to get the value of a moving average indicator.        // MASlowCurr is the value of the slow moving average at the current instant.    double MASlowCurr =iMA(Symbol(),0, MASlowPeriod,0,MODE_SMA,PRICE_CLOSE,0);        // MASlowPrev is the value of the slow moving average at the last closed candle/bar.    double MASlowPrev =iMA(Symbol(),0, MASlowPeriod,0,MODE_SMA,PRICE_CLOSE,1);        // MAFastCurr is the value of the fast moving average at the current instant.    double MAFastCurr =iMA(Symbol(),0, MAFastPeriod,0,MODE_SMA,PRICE_CLOSE,0);        // MAFastPrev is the value of the fast moving average at the last closed candle/bar.    double MAFastPrev =iMA(Symbol(),0, MAFastPeriod,0,MODE_SMA,PRICE_CLOSE,1);        // Compare the values and detect if one of the crossovers has happened.    if((MASlowPrev > MAFastPrev)&&(MAFastCurr > MASlowCurr))    &#;       CrossToBuy =true;    &#;    if((MASlowPrev < MAFastPrev)&&(MAFastCurr < MASlowCurr))    &#;       CrossToSell =true;    &#;&#;

The code above could be adapted to any pair of indicators to spot crossovers. You can improve and adapt this piece of code according to your own needs. It is always a good idea to try and experiment!

If you want to get news of the most recent updates to our guides or anything else related to Forex trading, you can subscribe to our monthly newsletter.

3 Ma Cross Alert

The 3 MA Cross Alert MT5 Indicator is a Forex trading tool that identifies trend reversal and potential entry or exit points. It uses a combination of fast, medium, and slow-moving averages of different periods. The fast-moving average detects short-term trends, the medium detects intermediate trends, while the slow-moving average identifies long-term trend

The indicator paints a buy or sell signal arrow whenever a crossover occurs between two moving averages of different periods. Besides, it also has a signal alert system that notifies traders of buying and selling opportunities, making it easy to follow the signals.

Features of the 3 MA Cross Alert MT5 Indicator

  • Customizable Parameters: The indicator’s parameters are customizable. For instance, traders may adjust the periods of the moving averages to increase or decrease the responsive rates to the price.
  • Alert and Notifications: The indicator has a signal alert notification system, such as sound alerts, pop-up alerts, email notifications, and push notifications.

Benefits of Using the Indicator

The 3 MA Cross Alerts MT5 indicator filters market noises to identify accurate market direction. Therefore, its reliability in delivering accurate signals makes it a suitable trading tool for beginners, intermediate, and advanced traders.

Furthermore, the indicator’s alert system makes it convenient for traders to keep a tab on the buying and selling opportunities identified in the Forex market.

3 MA Cross Alert MT5 Indicator Settings Description

The indicator comes with the following customizable settings:

Period of the first moving average: Period to calculate the first moving average.

Shift of the first moving average: Determines the number of periods by which the first moving average shifts.

Method of the first moving average: Determines the method of the first moving average.

Period of the second moving average: Period to calculate the second moving average

Shift of the second moving average: Determines the number of periods by which the second moving average shifts.

Method of the second moving average: Determines the method of the second moving average.

Period of the third moving average: Period to calculate the third moving average

Shift of the third moving average: Determines the number of periods by which the third moving average shifts.

Method of the third moving average: Determines the method of the second moving average

crossesonCurrent: Enables/Disables signals on current candlestick crossover.

alertsOn: Enables/Disables the alert system.

alertsMessage: Enables/Disables alerts via message.

alert sound: Enables/Disables alert sounds.

alertsEmail: Enables/Disables signal alerts via email.

3 Ma Cross With Alert Mtf

Features of the 3 Ma Cross With Alert Mtf Indicator

The 3 MA Cross with Alert MTF indicator for MT4 is a multiple-period indicator that functions similarly to a standard moving average. It plots three multiple-timeframe exponential moving averages on the chart. These EMAs are slow, medium, and fast.

How the Indicator Can Benefit You

The indicator signals to buy or sell whenever the moving averages cross.  The indicator displays diamonds and arrows when the crossovers occur. It plots a blue arrow and diamond if the crossover is bullish. On the other hand, the indicator shows a red arrow and diamond if the crossover is bearish. You can use these signals to enter trades.

Indicator Setting Description

Timeframe: Displays the current timeframe.

FasterMA: Allows you to change the value of the faster EMA.

FasterShift: Allows you to change the shift of the faster EMA.

FasterMode: This allows you to change the mode of the faster EMA.

FasterPrice: Allows you to change the closing price of faster EMA.

MediumMA: Allows you to change the value of the medium EMA.

MediumShift: Allows you to change the shift of the medium EMA.

MediumMode: Allows you to change the mode of the medium EMA.

MediumPrice: Displays the closing price of medium EMA.

SlowerMA: Displays the value of the slower EMA.

SlowerShift: Displays the shift of the slower EMA.

SlowerMode: Displays the mode of the slower EMA.

SlowerPrice: Displays the closing price of slower EMA.

ShowMAs: If set to true, the indicator shows EMAs.

alertsOn: Turns alerts on/off.

alertsonCurrent: Turns alerts on/off on the current timeframe.

alertsonFastCrossMiddle: Turns alerts on/off when the faster EMA crosses the middle one.

alertsonFastCrossSlow: Turns alerts on/off when the faster EMA crosses the slower one.

alertsonMiddleCrossSlow: Turns alerts on/off when the middle EMA crosses the slow one.

alert message: Enables/disables message alerts.

alert sound: Turns sound alerts on/off.

alertsNotfiy: Turns alerts on/off.

alertsEmail: Enables/disables email alerts.

showsarrow_ms: Turns on/off arrow display of medium shift.

showsarrow_fs: Turns on/off an arrow display of fast shift.

showsarrow_fm: Turns on/off an arrow display of fast-medium.

arrowUpCode_ms: Enables you to edit the value of the up arrow in the medium shift.

arrowDownCode_ms: Allows you to edit the value of the down arrow in the medium shift.

arrowUpCode_fs: Allows you to edit the value of the up arrow in the fast shift.

arrowDownCode_fs: Enables you to edit the value of the down arrow in the fast shift.

arrowUpCode_fm: Allows you to edit the value of the up arrow in the fast-medium.

arrowDownCode_fm: Enables you to edit the value of the down arrow in the fast-medium.

Interpolate: Turns interpolation on/off.

ArrowsOnFirstBar: Turns arrow display on/off on the first bar.

arrowsFMGap: Allows you to edit the value of arrows of faster-medium EMA gap.

arrowsFSGap: Enables you to edit the value of arrows of the faster-slower EMA gap.

arrowsMSGap: Allows you to edit the value of arrows of the medium-slower EMA gap.

ForexTraining Group

0 FlaresTwitter0Facebook0Google+00 Flares&#;

The moving average is one of the most common indicators in Forex trading. It is present in almost every chart analysis that you will see online. Some platforms even come with pre-built templates that include different moving averages. For this reason, today we will discuss one of the most common signals given by the different moving average indicators.

Download the short printable PDF version summarizing the key points of this lesson&#;. Click Here To Download

The moving average is an indicator that takes price points on the chart on an equal time distance and averages them. This way, at a specific moment, the moving average will show you the price average based on past data on the chart.

The moving average study is seen as a curved line. It can be applied directly on the price action chart, no matter what type of chart you are using. Sometimes the moving average line will be above the price action and other times it will be below the price action. Here is an example:

Moving Average Indicator

The red line on the chart is a moving average line. Notice how the price constantly fluctuates above and below the moving average line. This creates different signals, which we will discuss later in the article.

The moving average indicator calculation relies on a pre-determined number of periods on the chart. You can choose how many periods you want the moving average to take into consideration to give you an average.

For example, if you use a period simple moving average on a H1 chart, the indicator will take the last 20 hourly price values and will average them. This way, you will get a moving average point on the chart. The different average points on the chart create the moving line that you saw above.

If you take a periond simple moving average, it will average the last 50 periods on the chart. If you take a period moving average, it will average the last periods on your chart and so on.

As a general guideline, the longer the moving average period, the smoother the moving average line will tend to be. The reason for this is that a single price fluctuation gives a higher deviation on a shorter number of periods, and is less pronounced as the number of periods increases.

Traders use moving average indicators to get different trading signals on the chart. They use these signals to set entry and exit points for their trades. Sometimes, moving averages can simply support the trading strategy with an extra layer of confirmation. Here are the most common signals that you will get from a moving average.

Support and Resistance

Every moving average has the power to act as a support or a resistance zone. Since MAs are a representation of price action, they contain a psychological factor that can act as a turning point on the chart.

If the price interacts with a moving average from above, the MA can act as a support. If the price approaches the moving average from below, then we can have a resistance test.

Moving Average Support and Resistance

Here is an example of how a moving average can support and resist the price action. These bounces from the MA can work as signals for your trades.

Price Breakouts

If the price slices through a moving average and breaks it, then the price is very likely to continue in the same direction. In some cases, a moving average breakout will lead to the creation of fresh trends.

Moving Average Support and Resistance

Above we see how a relatively slow moving average (period) begins as a support. Suddenly, the price breaks it in the bearish direction. As you can see, a bearish trend forms as a result. In the meantime, the moving average turns into a resistance and pushes the price action even lower. An opposite breakout appears at (5), followed by the end of the trend.

You are free to use more than one moving average on your chart. Actually, you are not limited to any number of moving averages. However, to get a moving average crossover, you will need at least two moving averages.

The moving average crossover is a type of signal where a faster moving average crosses a slower moving average. Since a smaller period moving average is more volatile, it will act to crossover the bigger period moving average.

When an MA cross occurs on the chart, this is a signal that the price might be moving in the direction of the crossover. When the faster moving average breaks the slower moving average upward, we have a bullish MA crossover. If the faster moving average breaks the slower moving average downward, then we have a bearish MA crossover.

MA Crossover Indicator

Above you see a chart with two simple moving average indicators &#; period (blue) and period (red). The smaller one is the more dynamic one due to the smaller amount of periods taken into consideration. This causes the blue MA to be more curved, while the period is smoother. At the beginning of the chart, we see a bullish moving average crossover, which leads to a solid bullish trend.

At the top of the trend, we see an opposite MA crossover (bearish), followed by a price hesitation and a second bearish MA cross. A reversal occurs afterward.

Learn What Works and What Doesn&#;t In the Forex Markets&#;.Join My Free Newsletter Packed with Actionable Tips and Strategies To Get Your Trading Profitable&#;.. Click Here To Join

There are several moving average types based on the way they actually average the price action periods. Below are some of the more common ones.

Simple Moving Average (SMA)

The simple moving average (SMA) calculates the mean of the price action periods taken into consideration. That’s it. With every new candle on the chart, the moving average calculates a new mean point on the chart.

Exponential Moving Average (EMA)

The exponential moving average (EMA) works in nearly the same way as the SMA. However, the EMA puts a higher emphasis on more recent periods. This is where the exponential factor comes from.

Volume Weighted Moving Average (VWMA)

The volume weighted moving average (VWMA) works in a similar way to the EMA. But the VWMA puts emphasis to price periods, supported by a higher trading volume.

Displaced Moving Averages

You can shift moving averages forward or backward on the chart, creating displacement. If you displace a moving average by 10 periods into the future, the line you have on the chart will simply move 10 periods to the right. If you displace a moving average in the past, then the line switches to the left.

You can displace any moving average the way you want. Traders perform moving average displacements to read the price action in a better.

You can combine different moving averages on your chart. It is not necessary for all your MAs to be of the same type. You can use one SMA with one EMA, or one EMA with one VWMA, or any other combination.

We will now show you some of the most common crossover setups that traders use.

2 SMA Crossover Indicator

The first example includes the use of the most common scenario &#; dual simple moving averages.

2 SMA Crossover Strategy

We see the same period and period simple moving average indicator above. We have a bullish SMA crossover, followed by a bullish trend. A bearish SMA cross appears after a horizontal price move and we see a drop afterward.

2 EMA Cross Indicator

Another common scenario is the one that includes two exponential moving average indicators. Let’s see what will happen if we use two exponential moving averages with the same periods on the same chart!

2 EMA Cross Indicator MT4

The scenario is nearly the same. However, the bullish EMA cross over comes earlier compared to the SMAs. At the same time, the bearish EMA cross indicator signal appears later with the EMAs compared to the SMAs.

Other Forex MA Cross Strategy

Now let’s approach another moving average crossover example. This time, we will use three simple moving average indicators on the same chart.

Here are the three simple moving averages:

  • Blue: period SMA &#; fast
  • Red: period SMA &#; slow
  • Green: period SMA &#; slower

The bigger the MA, the smoother it is. In this manner, the faster SMAs are breaking the slower ones.

Although we call it an SMA crossover strategy, the general idea is that the three moving averages line up in a bullish or bearish direction.

In our case, we get a bullish crossover at the moment when the three SMAs line up from top to bottom: fast, slow, and slower. The bearish crossover comes when the three SMAs line up from top to bottom: slower, fast, and slow.

The crossovers here come later than with the dual moving averages. The reason for this is that we will be waiting for another confirmation from the third SMA, which takes extra time. On the other hand, these crossovers are more accurate than the dual moving averages, because they contain an extra confirmation.

Stop Loss with the MA Crossover Indicator

As with every other Forex trading strategy, we always recommend that you use a stop loss order when trading MA crossovers.

If you decide to enter the market on an MA cross indicator, you should put your stop at the other side of the cross.

If the cross is bullish and you open a long trade, the stop loss should go below the bottom created at the time of the price switch.

If the cross is bearish and you open a short trade, you can place your stop above the price top at the time of the reversal.

Here is an example of a stop loss order on a moving average crossover trade:

MA Crossovers Stop Loss

The green circle shows the actual MA crossover. The pink arrow points toward the swing top before the cross. If you believe that this swing top is not adequate, you can use the one before. However, that will require your taking more risk.

Profit Collection for Your MA Forex Crossover Strategy

Notice that we use “profit collection” and not “take profit” as a level. The reason for this is that moving average crossover trading is not providing you a fixed exit point for your trades. You should wait for the opposite crossover to exit your trades or some other exit mechanism.

Moving Average Crossover Profit Collection Strategy

This is the same example from above. However, this time we have outlined the bearish trend that the price action is following.

You can close your trade when the price breaks that trend line or you can wait for the opposite cross. In this case, the trend breakout is sufficient, because the trend is very clear on the chart. You can always wait for the bullish crossover as noted by Close 2, but why would you?

The first trading strategy we will give as an example involves the moving average crossover combined with price action techniques. The goal here is to enter the market on a MA crossover indicator signal and some other price action signal. Then, you would close your trade on either a strong price action signal or an opposite MA crossover.

MA Crossover Strategy with Price Action

Above you see an H4 chart of the EUR/USD. We have a couple of SMAs on the chart – the period and the period.

The chart starts with a bullish trend (blue straight line), which gets broken and shows reversal intentions shortly after.

This reversal intention gradually forms a Head and Shoulders chart pattern, supported by a bearish SMA crossover. At the time when the price was creating the second shoulder, we saw a bearish bounce from the blue period SMA. This looks like a suitable time to sell.

The good thing here is that we have the Head and Shoulders rule to pursue an eventual target for our trade. We suggest a couple of exits here at close 1 and close 2.

Close 1 – the price completes the Head and Shoulders pattern.

Close 2 – the price action confirms a Double Bottom chart pattern and breaks the period SMA (blue) in the bullish direction.

One of the best moving average crossover strategies involves the MACD indicator. MACD works well with MA crossovers, because the MACD involves moving averages in its calculation. We will open trades based on MA crosses combined with an extra signal from the MACD. Then, we will close trades on either an opposite moving average cross or just an opposite MACD signal.

SMA Crossover with MACD

This time, we have a MACD at the bottom of the H1 EUR/USD chart and period and period SMAs.

The first bearish signal we get at the green circle on the MACD indicator, when its two lines cross.

Shortly after, we get a bearish SMA crossover, which confirms the MACD signal. This is a good moment to sell, placing a stop loss order above the last top on the chart.

The EUR/USD starts trending in a bearish direction. Our closing signal comes when the MACD lines interact with each other in the opposite direction.

Download the short printable PDF version summarizing the key points of this lesson&#;. Click Here To Download
  • Moving averages are among the most common Forex trading indicators.
  • MAs are curved lines and can appear above or below the price action.
  • A moving average uses a certain fixed period as a user input.
  • Signals of the MA indicator:
    • Support and Resistance
    • Price Breakouts
    • Moving Average Crossover
    • Bullish MA Cross &#; a faster MA breaks a slower MA in bullish direction
    • Bearish MA Cross &#; a faster MA breaks a slower MA in bearish direction
  • Different Moving Average Indicators:
    • Simple Moving Average (SMA) &#; simply averages the periods
    • Exponential Moving Average (EMA) &#; puts weight on more recent periods
    • Volume Weighted Moving Average (VWMA) &#; puts weight on periods with higher trading volume
    • Displaced Moving Averages &#; shifts the MA a certain number of periods
  • MA crossovers can appear in any MA setup
    • 2 SMA Crossover Strategy
    • 2 Forex EMA Crossover Strategy
    • 3 EMA Crossover Strategy
    • SMA + VWMA Crossover Strategy
    • Other MA Strategies
  • Your stop loss order should be placed at the other side of the cross.
  • Close your trades based on opposite signals
  • Two of the best MA crossover strategies
    • MA Crossover + Price Action: Open your trades on MA crosses and price action signals. Put your stop at the opposite side of the moving average crossover. Close your trades based on opposite MA crossover.
    • MA Crossover + MACD: Open your trades on MA crossovers, confirmed by a signal from a MACD indicator. Put your stop at the opposite side of the MA cross. Close your trades on either an opposite MA cross, or an opposite MACD signal.

0 FlaresTwitter0Facebook0Google+00 Flares&#;

Moving Average Crossover

The Moving Average Crossover is a valuable tool to find the middle price-point of a trend in forex trading. When currency prices crossover their current moving averages, it helps traders identify the favourable buying or selling points for the currency. Since new traders are beginners and do not have much knowledge about the forex market, it gives them a solid basis for their trading strategy. In this article, we discuss everything there is to know about moving average crossover, and more.

What is a moving average crossover?

The Moving Average (MA) Crossover is a forex price chart line indicating market price trends. It occurs when we plot two moving averages based on different timeframes (long-term and short-term), which end up crossing up with each other on a particular point. A crossover always occurs when the shorter period (faster) moving average crosses the longer period (slower) moving average. The short-term moving average is faster because it considers prices only at a short interval; hence the volatility is higher. On the other hand, the long-term moving average is slower because it considers prices over a long period of time and is less reactive to daily prices. If the short-term moving average exceeds or crosses the long-term moving average from above, it is an indication for traders to buy the currency due to a market uptrend signal. But if the short-term moving average crosses the long-term moving average from below, it is an indication to short the position and sell the currency due to the downward trend.

Moving Average Crossover graphic

Types of Moving Average Crossover

1. Long-term moving average

A long-term moving average is the currency's average price over a year or more. For example, a day moving average is a long-term moving average that provides you with the long-term trend in the market. You can calculate the long-term moving average by adding all closing prices of the currency pairs in the last year(s) and divide it by the total time period. A long-term moving average smooths out the minor daily price fluctuations and provides you with the overall market’s direction in the last year.

2. Short-term moving average

A short-term moving average is the average price of the currency over less than a year (a few days, weeks or months). For example, a day moving average is a short-term moving average that provides you with the short-term trend in the market. You can calculate the short-term moving average by adding the currency pair’s closing price over the number of days, weeks or months considered and divide it by the total time period. A short-term moving average considers all the price fluctuations that occur daily and is influenced by even the slightest of the price changes. It provides you with the overall market direction that the currency pair has been following over a few weeks and helps you take short-term trading decisions.

Understanding the moving average trading strategy

The moving average trading strategy that we will be discussing uses the exponential moving average. We consider this because the exponential moving average responds quickly to all the price changes. Follow the steps for developing a successful moving average trading strategy –

  1. Plot three moving averages over 3 different periods. Let us consider 5-period, period, and period exponential moving averages on a minute forex chart.
  2. Enter the market or buy the currency when the 5-period exponential moving average crosses the period exponential moving average from below. Both the 5-period and period exponential moving averages prices should be above the period exponential moving average prices.
  3. If you wish to identify the selling point or the point to exit the market, only sell when the 5-period exponential moving average crosses the period exponential moving average from above. Both the exponential moving averages and the price of the 5- period and period exponential moving averages should be below the period exponential moving average at this point.
  4. Ensure that you place a stop-loss order below the period exponential moving average during a buy move.
  5. You can also move this stop-loss point to a break-even point when the trade becomes 10% more profitable.
  6. You can set a profit target of 20% and/or exit when the 5-period exponential moving average line is below the period exponential moving average line.
Moving Average Crossover graphic

Understanding Moving Average Envelopes trading strategy

One of the most traded moving average strategies is the Moving Average Envelopes Trading Strategy. These are percentage- based envelopes that are set below and above a particular moving average. Both simple moving average and exponential moving average can be used as the basis of the moving average. However, the exponential moving average is considered a more relevant moving average that presents better results as it reacts more dynamically to the prices. In this trading strategy, forex traders test different percentages, timeframes, and currency pairs in order to understand how one can make the best use of the strategy. Mostly, envelopes are seen over 10 to day timeframes and are % away from the moving average. During day trading, envelopes are often less than 1%. The percentages change daily depending on the market volatility. Traders should ideally trade when they see a strong overall direction bias to the price, either as an upward or downward trend. Most traders then only trade in that particular direction. In case of an uptrend, traders should consider buying more as the price approaches the moving average point. Whereas, in a downtrend, traders should short-sell their positions as the price reaches the moving average point and then drops further. Once the traders short the position, they should place a stop-loss order just above the recent high price point. In case of a long-trade, a stop-loss order should be placed just below the recent low price point. As soon as the price reaches the lower point on a short trade or the upper point on a long trade, traders should consider exiting the trade to minimise losses. Lastly, it is a good strategy to set targets double the risk. For example, if you risk 5%, set a target of a point that is at least 10% away from the entry point.

Calculating the Exponential Moving Average

Let us consider that you wish to use 20 days as the time period for the exponential moving average. The first step to calculate the exponential moving average is to wait until the last day (in our case, the 20th day) to get the simple moving average of the time period. The next day, the 21st day, the trader can use the simple moving average that they calculated from the 20th day as the first exponential moving average for the previous day. Calculating the simple moving average is extremely easy. Simply sum up the currency's closing prices for the time period and divide it by the total number of observations, which in our case is Next, we calculate the weightage multiplier for the exponential moving average. The weightage multiplier is also called a smoothing. It is derived by dividing the number of observations + 1 by 2. This means, in our case, the weightage multiplier will be [2/(20+1)]= Finally, use the formula to calculate the current exponential moving average: Closing price * Multiplier + Exponential moving average of the previous day (calculated as the simple moving average) * (1-multiplier). Higher weight is given to recent prices in an exponential moving average, which is not the case with the simple moving average.

What are Golden Cross and Death Cross?

A Golden Cross occurs when the short-term moving average crosses the long-term moving average from above. It indicates an uptrend in the market and that the bulls (buyers) are taking over the bears (sellers). The Golden Cross occurs in three stages –

  1. It starts when an existing downtrend in the market comes to an end.
  2. The second stage consists of the short-term moving average crossing the long-term moving average from above.
  3. The final or third stage refers to an uptrend in the market that leads the currency pairs to trade higher.

A Death Cross is the exact opposite of a Golden Cross, which occurs when the short-term moving average crosses the long-term moving average from below. It indicates a downtrend in the market and that bears are taking over bulls. There are three stages to the Death Cross –

  1. It starts when an existing uptrend in the market comes to an end.
  2. The second stage is where the crossover happens.
  3. The third stage is when the downtrend in the market continues, leading the currency pair prices to trade lower.

What are short timeframe crossover signals?

Short timeframe crossover signals occur in a span of a few weeks or months only. The signals in the short timeframe are more frequent, volatile, and reactive to the latest price changes of the currency pairs.

Top Moving Average Trading Strategies

1. MA Crossover Strategy with Price Action

The MA Crossover Strategy with Price Action is a strategy that helps in finding the midpoint of a trend that provides traders with price signals about when to long or short a trade. The two Moving Averages that can be used in this crossover strategy are the period (short term) moving average and the period (long term) moving average. Whenever the period MA crosses the period MA from above, it indicates a market uptrend and signals traders to enter the market or go long to benefit from the uptrend. Whenever the period MA crosses the period MA from below, it indicates a market downtrend and signals traders to exit or go short to benefit from the falling markets.

Moving Average Crossover graphic

2. Moving Average Crossovers with the MACD Indicator

The best MA crossover strategy is the one combined with the MACD indicator for confirmed bullish or bearish signals. The Moving Average Convergence Divergence (MACD) helps in identifying if the markets are bullish or bearish, which in turn helps determine the ideal entry and exit price levels. MACD can be used with the Moving Average Cross Over by considering the 9-period moving average line as the short-term moving average and the period moving average line as the long-term moving average.

  • Traders reive a buy signal whenever the MACD line crosses the short-term moving average line from below.
  • Traders receive a sell signal whenever the MACD line crosses the short-term moving average line from above.
Moving Average Crossover graphic

Challenges with the moving average crossover trend

Moving average crossovers are extremely helpful for forex traders. However, in a consolidating market, moving average crossovers give various false signals. It can produce several signals that do not really indicate any trend in particular. It also implies that during such a situation, a trade does not experience an upward or downward bias in the currency pair, which could have led to significant profits.

Conclusion

Moving Average Crossovers signal potential entry and exit points. However, it should always be used with other chart patterns to rule out the chances of a false signal. Blueberry Markets is a forex trading platform that offers you access to advanced trading tools, tight spreads, and numerous guides to help you place successful trades and profit from them. Sign up for a live trading account or try a risk-free demo account.

Recommended Topics

  • Guide to Utilizing a No Stop-loss Trading Strategy in Forex

    Stop-loss orders can sometimes make a trade order restrictive, which could eventually lead traders to get out of a trade prematurely due to a false market signal.

  • How to Copy Trade With MetaTrader

    Copy trading provides a useful way for beginner level traders to learn from experienced traders.

  • What are Forex Expert Advisors?

    Forex Expert Advisors (EAs) enable the automation of forex trading.

  • How to Use The Accumulation/Distribution Indictor in Forex

    The Accumulation/Distribution (A/D) indicator can determine buying and selling pressures of a currency pair as it helps identify the relationship between the currency pair's price and volume.

  • What is Commodity Channel Index?

    The Commodity Channel Index (CCI) is a technical indicator that can identify overbought or oversold levels in market conditions as well as potential trend reversals and trade signals.

  • Top Fundamental Trading Strategies You Should Know

    Fundamental trading strategies are popular among traders who want to make informed investment decisions based on real-world data and events rather than solely on technical analysis.

  • How to Use Martingale Strategy For Trading

    The Martingale strategy acts as a popular high-risk trading strategy used in various financial markets including Forex and stocks.

  • What is The Forex Linear Regression?

    Forex linear regression enables you to predict future price movements by comparing the current and historical currency pair prices.

  • Top Advanced Forex Trading Strategies You Should Know

    Advanced forex trading strategies are perfect for experienced forex traders.

  • What is The Oscillator of Moving Average in Forex?

    The Oscillator of Moving Average (OsMA) is a technical indicator that helps in determining a trend’s strength in the forex market.

  • What Are Bear and Bull Power Indicators?

    Bear and bull power indicators in forex measure the power of bears (sellers) and bulls (buyers) to identify ideal entry points.

  • How to Trade With The On Balance Volume Indicator

    The On Balance Volume (OBV) indicator analyses the forex price momentum to measure the market’s buying and selling pressure.

  • How to Use The Alligator Indicator in Forex Trading

    The Alligator indicator can identify market trends and determine ideal entry and exit points based on the trend’s strength.

  • How to Use Inside Bar Trading Strategy

    Inside bar trading offers ideal stop-loss positions and helps identify strong breakout levels.

  • What is the Martingale Trading Strategy in Forex?

    The Martingale trading strategy increases the possibility of winning a trade in the forex market.

  • How to Use The Forex Arbitrage Trading Strategy

    Forex arbitrage trading strategy allows you to profit from the difference in currency pair prices offered by different forex brokers.

  • The Beginner’s Guide to MQL5

    MetaTrader, as a platform, has built-in functions that assist in technical analysis and trade management while also allowing traders to develop their own indicators and trading strategies.

  • How to Use DeMarker Indicator For Forex Trading

    Every trader needs to know precisely when to enter or exit a forex market.

  • How to Use The Accelerator Oscillator For Forex Trading

    The Accelerator Oscillator indicator helps detect different trading values that protect traders from entering bad trades.

  • A Forex Trader’s Guide to Awesome Oscillator

    When you understand market momentum, you can better identify market reversals.

  • What is Money Flow Index?

    The Money Flow Index can analyse the volume and price of currency pairs in the market.

  • What is The Ichimoku Kinko Hyo Indicator?

    The Ichimoku Kinko Hyo indicator provides traders with the market’s current momentum, direction and trend strength.

  • Top Pullback Trading Strategies

    Pullback trading strategies provide traders with ideal entry points to trade along with the existing trend.

  • What is High Wave Candlestick?

    The High Wave Candlestick pattern occurs in a highly fluctuating market and provides traders with entry and exit levels in the current trend.

  • What is the Parabolic SAR indicator?

    Identifying market trends becomes easier with the Parabolic SAR indicator as it provides the ideal entry and exit signals in strong trending markets.

  • What is Currency Correlation?

    Currency correlations help trade multiple currencies in the forex market by identifying the market trends of each currency pair.

  • Price Action Trading Strategy

    A Price Action Trading Strategy helps find ideal entry and exit points depending on expert opinions, news announcements, or technical indicators.

  • Average True Range

    Average True Range (ATR) helps in identifying how much a currency pair price has fluctuated. This, in turn, helps traders confirm price levels at which they can enter or exit the market and place stop-loss orders according to the market volatility.

  • What is the Bullish Engulfing Candlestick?

    Bullish Engulfing Candlesticks helps in identifying an uptrend reversal in the market. This candlestick pattern stands out because a trader does not need to wait until the entire pattern is completed to enter a trade.

  • How To Trade The Gartley Pattern

    The Gartley pattern helps identify price breakouts and signals where the currency pairs are headed. The pattern is also widely used in the forex market to determine strong support and resistance levels.

  • How to Trade Forex With NFP V-Shaped Reversal

    A Non Farm Payroll (NFP) V-shaped reversal refers to a sudden increase or decrease in the currency pair prices right after an NFP report is released.

  • Candlestick Patterns: Top Candlestick Charts Every Trader Should Know

    Candlestick patterns depict the price movement of assets in a graphical manner. Candlestick patterns also enable traders to predict market behaviour.

  • What is the Evening Star Candlestick Pattern?

    Evening Star Candlestick Patterns help traders identify ideal exit levels in the forex market by signalling a slowed upward momentum and strengthened downward momentum.

  • How to Use Ichimoku Cloud in Forex?

    The Ichimoku Cloud provides a clear market trend direction to the traders and helps them make market decisions accordingly.

  • Pennants Pattern: How to trade bearish and bullish pennants

    Pennant Patterns work as a continuation signal in the forex market and help identify the ideal entry and exit price points

  • How to Trade Forex With Renko Charts

    Renko Chart is a technical indicator that provides strong market trend directions by filtering out minor price movements

  • What are Ascending and Descending Triangle Patterns?

    The Ascending and Descending Triangle Patterns confirm continued trends in the forex market.

  • How to Identify Cup and Handle Pattern in Forex Trading

    The Cup and Handle Pattern is a technical price chart that forms the shape of a Cup and a Handle, which indicates a bullish reversal signal.

  • What is the Head and Shoulders pattern?

    The Head and Shoulders pattern is a trend reversal indicator that predicts bullish to bearish and bearish to bullish reversals in the forex market.

  • What is the Hammer Candlestick Pattern?

    Hammer Candlesticks enable traders to identify potential market reversal points, determine the ideal time to enter the market and place buy or sell orders accordingly.

  • What is The Opening Range Breakout Strategy

    The Opening Range Breakout (ORB) Strategy involves taking forex positions when the currency pair prices break below or above the previous day's high or low

  • Morning Star Indicator

    The Morning Star Indicator helps identify strong trend reversals in the forex market and enables you to take trade position entry decisions accordingly.

  • How Does Stochastic Indicator Work in Forex Trading?

    Stochastic Indicator helps traders identify overbought and oversold market conditions that substantially lead to market reversals.

  • Favourite Fib Fibonacci Retracement

    Fibonacci retracement strategies help traders identify the market's support and resistance levels, trend reversal points, and entry and exit decisions.

  • Heikin Ashi Candlestick Pattern

    The Heikin Ashi Candlestick pattern is almost the same as the traditional candlesticks, with one big difference—the former is an averaged out version of the latter.

  • Multiple Time Frame Analysis in Forex

    By monitoring different currency pairs in different time frames, you can make your Forex trades more successful and profitable.

  • What are Bollinger Bands?

    The Bollinger bands can help identify overbought and oversold market conditions, protecting you against placing any orders that could lead to losses.

  • Andrew's Pitchfork Trading Strategy

    Andrew's Pitchfork is a Forex trading strategy that can predict protracted market swings and help you in identifying potential market trends that can indicate potential exit and entry points.

  • Fibonacci Retracement

    Fibonacci retracements are one of the most popular methods for predicting currency prices in the Forex market. Predicting upward or downward market movement can help traders with accurate price analysis for exiting or entering the market.

  • Trading in Volatile Markets

    Forex volatility is the measure of how frequently a currency's value changes. A currency either has high volatility or low volatility depending on how much its value deviates from its average value.

  • The ABCD pattern

    One of the most classic chart patterns, the Forex ABCD pattern represents the perfect harmony between price and time.

  • The Bearish Gartley Pattern

    The Bearish Gartley pattern was introduced in , by H.M. Gartley in his book, “Profits in the Stock Market”. The pattern helps Forex traders in identifying higher probabilities of selling opportunities.

  • The Bullish 3 Drive pattern

    The Bullish Three Drive pattern in Forex trading is a rare pattern that gives traders information about the Forex market's potential at its most Bearish point, and in turn, suggests probabilities for a market reversal.

  • What is the MACD Indicator?

    The Moving Average Convergence Divergence (MACD) indicator helps traders quickly identify short-term trend directions and reversals in the forex markets. You can use the MACD indicator to determine a currency pair price trend's severity and measure its price's momentum and even identify the bearish and bullish movements in the currency pair prices.

Guide to Forex
Trading indicators.

Enter your details to get a copy of our
free eBook

Thank you, please check your inbox for your ebook.

News & Analysis

Catch up on what you might
have missed in the market.

Moving Average Crossover with Alert for MT4 and MT5

Moving Average Crossover Alert indicator is a free MT4/MT5 indicator that you can download here and use in your MetaTrader to receive notifications via email, mobile app, and on the trading screen when two moving averages cross.

What is moving average?

A moving average is one of the simplest indicators in technical analysis. A moving average is basically an average value of the price over the last specified number of candles. So, for example, a moving average of period 10 is the average price over the last 10 candles.

Moving averages are popular for the following reasons:

  • They can reduce the noise, showing a smoother movement of price.
  • Help detecting trends.
  • Help spotting trend reversals.

One of the problems of moving averages is that they are lagging indicators, so they lag behind price, often giving signals too late.

Being a very simple instrument, they are usually considered together with other indicators or price action.

What is moving average crossover indicator?

Moving Average Crossover indicator with alert is a tool for MetaTrader that can notify you when two moving averages cross each other.

Moving Average Crossover indicator includes two moving averages and displays them on screen.

Many trading strategies base their entry and exit signals on MA crossovers.

While a MACD indicator shows the crossovers in a histogram chart, this indicator only shows the moving averages.

A crossover in two moving averages of different period can indicate a trend reversal.

MT4/MT5 Moving Average Crossover Indicator - Example Crossovers

Moving Average Crossover Alert indicator for MT4/MT5

MetaTrader platform includes a moving average among its indicators, however, it comes without any crossover notification option.

In many cases it is useful get a notification in some moving average crossover situations because they could be trading opportunities.

You can benefit from this alert in both trend following and trend reversal strategies.

To help with this missing feature, you can download our Moving Average Crossover Alert indicator for MetaTrader 4 & 5.

This indicator allows you to get notification when some conditions trigger. You can receive notifications via:

  • Email
  • Mobile app (push-notifications)
  • On-screen

Input parameters

The indicator is very flexible and you can set several parameters:

  • Period of the moving averages.
  • Type of the moving averages (simple, exponential, weighed, TEMA (in MT5), and so on).
  • Shift.
  • Type of notifications.
  • Color and size of the signals on the chart.

MT4/MT5 Moving Average Crossover Indicator - Input Parameters

Due to the parameters available, Moving Average Crossover Alert indicator is suitable for both simple moving averages and exponential moving averages cross alerts.

MT4/MT5 Moving Average Crossover Indicator - Native Alerts

Arrow signals

Another interesting feature of Moving Average Crossover Alert indicator is that it can display buy and sell signals in the form of arrows when signals occur.

MT4/MT5 Moving Average Crossover Indicator - Arrows

Moving Average Crossover indicator source code

If you are interested in alert indicators, you can use the source code of the present Moving Average Crossover Indicator for your further development. Additionally, you can inspect the code of our Alert Indicator Template, which was used as the foundation for Moving Average Crossover Alert indicator.

How to download and use MT4 Moving Average Crossover indicator?

You can download the indicator for free using the link below and install it by following the provided instructions.

The installation is very easy to perform. The same is true for using this tool.

Once you run the indicator you can set the parameters. You can select what moving averages to use and how to receive notifications.

MT4 Moving Average Crossover installation

To install MT4 Moving Average Crossover Indicator, please follow the instructions below:

  1. Download the indicator archive file.
  2. Open the MetaTrader 4 data folder (via File→Open Data Folder).
  3. Open the MQL4 Folder.
  4. Copy all the folders from the archive directly to the MQL4 folder.
  5. Restart MetaTrader 4 or refresh the indicators list by right-clicking the Navigator subwindow of the platform and choosing Refresh.

For more detailed instructions on how to perform the installation please visit this article.

MT5 Moving Average Crossover indicator

What is MT5 Moving Average Crossover indicator?

Moving Average Crossover indicator for MetaTrader 5 is a plugin that allows you to set up alerts for a crossover of two moving averages on your MT5 chart. It has exactly the same features as the version of the indicator for MT4 plus the capability to use TEMA (triple exponential moving average) as an MA type.

How to download and use MT5 Moving Average Crossover indicator?

You can download the indicator for free using the link below and install it by following the provided instructions.

MT5 Moving Average Crossover installation

To install the MT5 Moving Average Crossover Indicator please follow the instructions below:

  1. Download the indicator archive file.
  2. Open the MetaTrader 5 data folder (via File→Open Data Folder).
  3. Open the MQL5 Folder.
  4. Copy all the folders from the archive directly to the MQL5 folder.
  5. Restart MetaTrader 5 or refresh the indicators list by right-clicking the Navigator subwindow of the platform and choosing Refresh.

For detailed instructions on how to setup the alerts in MetaTrader please refer to our guide on notifications in MT4/MT5.

You can open a trading account with any of the MT4 Forex brokers to freely use the presented here indicator for MetaTrader 4. If you want to use an MT5 version of the indicator presented here, you would need to open an account with a broker that offers MetaTrader 5.

Discussion

Do you have any suggestions or questions regarding this indicator? You can always discuss Moving Average Crossover Alert with the other traders and MQL programmers on the indicators forums.

Changelog

  • Removed some unnecessary recalculations.
  • Optimized signal arrow drawing to remove chart blinking.
  • Fixed potential errors for charts with few candles.
  • Fixed deletion of signal arrows when the alert trigger candle was set to Previous.

  • Added TEMA (Triple Exponential Moving Average) MA type to the MT5 version of the indicator.
  • Added signal directions to alert texts.
  • Fixed alert signals to appear correctly.

MA Crossover Signal indicator

MA_Crossover_Signal is a mt4 (MetaTrader 4) indicator and it can be used with any forex trading systems / strategies for additional confirmation of trading entries or exits.

(downloadable file MA_Crossover_eunic-brussels.eu contains MA_Crossover_eunic-brussels.eu4 and MA_Crossover_eunic-brussels.eu4)

 

Free Download MA_Crossover_Signal Mt4 Indicator

How to install MA_Crossover_Signal mt4 indicator in forex trading platform metatrader 4?

  • Extract the downloaded MA_Crossover_eunic-brussels.eu
  • Go to “File menu” in Mt4 trading platform and click “open data folder”. Open Mql4 folder and open the indicators folder.
  • Now paste the MA_Crossover_eunic-brussels.eu4 and MA_Crossover_eunic-brussels.eu4 files into indicators folder and restart the MetaTrader 4.

 

Forex Trading Systems / Strategies using MA_Crossover_Signal indicator.

 

7 7 Best Indicators for Crypto Trading

30Jan

7 Best Indicators for Crypto Trading

ByAlexFX

In the dynamic realm of cryptocurrency trading, success hinges not only

Read More
7 BEST TREND INDICATORS

21Dec

List of the Best TOP 7 Trend Forex Indicators

ByAlexFX

Navigating the Forex markets demands keen insights into trends, a critical

Read More
Optimize Timeframes MACD Settings

18Dec

Best MACD Settings for Precision in Swing and Intraday Trading

ByAlexFX

The Moving Average Convergence Divergence (MACD) has a storied history in

Read More

14Dec

The Best Volatility Indicators For MT4

ByAnastasiia

Volatility indicators are like traffic lights. Traffic lights tell you when

Read More
Forex Correlation Pairs List

05Dec

Forex Correlation Pairs List: Positive and Negative Correlated

ByAlexFX

In the complex world of forex trading, understanding the relationships between

Read More
10 Best TradingView Indicators

28Nov

TOP 10 Best TradingView Indicators

ByAlexFX

Navigating the dynamic expanse of TradingView, a robust online platform, unveils

Read More
Best Verified Indicator for Forex Sideways Market

10Nov

List of the Best Indicator for Sideways Market

ByAlexFX

Trading in the Forex market isn't confined to trend identification alone,

Read More

01Nov

How to Use Relative Strength Index in Forex

ByEvgen

Navigating the dynamic terrain of Forex trading necessitates a robust technical

Read More

31Oct

Mastering Forex Trading with Moving Averages: A Comprehensive Guide

ByEvgen

In the world of forex trading, which involves the global exchange

Read More

28Oct

How To Identify Divergence In Forex

ByEvgen

The forex market is a dynamic and ever-evolving landscape, offering traders

Read More

25Oct

How to Use Bollinger Bands Indicators in Forex Trading

ByEvgen

The realm of forex trading is a constantly shifting and multifaceted

Read More
Increase you traiding results with best Indicator combinations

18Oct

Best Forex Indicator Combinations

ByAlexFX

In the world of Forex trading, the right tools can make

Read More
Best Candle Patterns to use in Forex trading

25Sep

The Best Candle Patterns for Forex

ByAlexFX

Description of Candlestick Patterns Candlestick patterns are a fundamental tool in technical

Read More
BOS and CHOCH Trading Strategy - Your Ultimate Guide

06Sep

BOS and CHOCH Trading Strategy: Your Comprehensive Guide

ByAlexFX

Description Dive into the depths of the BOS and CHOCH Trading Strategy

Read More

04Sep

How To Use Pivot Points: A Little Guide to Successful Forex Trading

ByEvgen

In the world of finance, Pivot Points are a powerful tool

Read More
Best arrow indicator mt4/5

21Aug

The Best Arrow Indicators for Metatrader 4/5 Platform

ByAlexFX

The year offers exciting opportunities for traders, and using the

Read More
15 Best Forex Telegram Channels and Group for Profitable Trading

01Aug

Discover the Top 15 Forex Telegram Channels for Profitable Trading

ByAnastasiia

Forex trading has become increasingly popular othe years, attracting individuals eager

Read More

19Jul

What Must Happen for Crypto to Recover?

ByPlatinumTrader

Finding advice and staying informed is essential in today’s volatile Bitcoin

Read More

14Jul

Types of Forex MT4 Indicators: Comprehensive Overview

ByPlatinumTrader

Traders utilize forex indicators as instruments for market analysis and to

Read More

nest...

аналитика форекс gbp кaртa мирa форекс вспомогательные индикаторы форекс как платят налоги трейдеры валютного рынка форекс лучшие индикаторы для входа индикаторы измерения температуры щитовые дмитрий котенко форекс клипaрт для форекс имхо на форексе дц форекс брокер отзывы безрисковая комбинация форекс индикаторы рынка ферросплавов