Moving Average with Alert for MT4 and MT5
Moving Average 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 in the platform when a moving average crosses the price.
What is moving average indicator?
Moving average indicator is one of the most basic technical indicators used in trading. Moving average is also commonly known as MA.
You can see a moving average on the chart represented by a line.
The value of a moving average, in its simplest calculation, is the average of the Close price over a number of previous candles.
Moving Average Alert indicator
MetaTrader platform includes moving average among the built-in indicators. However, it comes without any notification feature.
In many cases, it is useful to be notified when the price crosses its moving average. You can benefit from this alert in both trend following and trend reversal strategies.
Te gain the missing feature, you can download our free Moving Average Alert indicator.
This indicator lets you receive alerts when the price crosses its moving average. You can receive notifications via:
- Mobile app
- On screen
The indicator supports simple, exponential, linear weighted, smoothed, and Hull moving average calculation modes.
Another interesting feature of Moving Average Alert indicator is that it can draw buy and sell signals as arrows on your chart when a price crossover happens.
Input parameters
All the input parameters are well annotated inside MetaTrader, but here is a detailed description for some of them:
- Candle To Use For Analysis — which candle to analyze for a crossover. It can be either the Current candle (the right-most on the chart) or the Previous (the latest completed one).
- Ignore Same Candle Crosses — whether to ignore signals when it is just the same candle that opened on the one side of the moving average and closed on the other side of it, even if the previous candle closed on the same side of the MA as the current one. Here is an example for when this parameter is set to false:
And here is the same chart with this parameter set to true:
- Number Of Candles To Analyze — to avoid unnecessary calculations, the indicator will check the price/MA crossing only on the latest N candles.
- Enable Notifications Feature — if true, the indicator will send notifications upon triggering.
- Send Alert Notification — if true, the indicator will issue native on-screen alerts.
- Send Notification To Mobile — if true, the indicator will send push-notifications to your mobile device.
- Send Notification Via Email — if true, the indicator will send emails when it detects a cross.
Moving Average Alert indicator source code
If you are interested in alert indicators, you can use the source code of the present Moving Average Alert Indicator for your further development. Additionally, you can inspect the code of our Alert Indicator Template, which was used as a foundation for this indicator.
How to download and use MT4 Moving Average Alert 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 moving average type and period to use and how to receive notifications.
Downloads
MT4 Moving Average Alert installation
To install MT4 Moving Average Alert indicator, please follow the instructions below:
- Download the indicator archive file.
- Open the MetaTrader 4 data folder (via File→Open Data Folder).
- Open the MQL4 Folder.
- Copy all the folders from the archive directly to the MQL4 folder.
- 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 Alert indicator
What is MT5 Moving Average Alert indicator?
Moving Average Alert Indicator for MetaTrader 5 is a plugin that allows you to set up alerts for moving average crossing the price on your MT5 chart. It has exactly the same features as the version of the indicator for MT4.
How to download and use MT5 Moving Average Alert indicator?
You can download the indicator for free using the link below and install it by following the provided instructions.
Downloads
MT5 Moving Average Alert installation
To install the MT5 Moving Average Alert Indicator please follow the instructions below:
- Download the indicator archive file.
- Open the MetaTrader 5 data folder (via File→Open Data Folder).
- Open the MQL5 Folder.
- Copy all the folders from the archive directly to the MQL5 folder.
- 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 with Alert with the other FX traders and MQL programmers on the indicators forums.
Changelog
1.04 — 2024-07-19
- Added input parameters to change the arrow colors.
- Added an option to ignore crosses when the current candle closes on the same side of the moving average as the previous one.
- Fixed signal arrows disappearing.
- Fixed an issue when the indicator failed to load when there wasn't yet enough chart data available.
1.03 — 2023-06-01
- Added Hull moving average type.
- Optimized signal arrow drawing to remove chart blinking.
- Changed alert texts to more concise.
- Fixed potential
array out range
errors for charts with few candles. - Fixed deletion of signal arrows when the alert trigger candle was set to Previous.