You’ve identified a clean trend forming on EUR/USD, set up your 20 and 50 EMA crossover strategy, and then stepped away from the screen. When you come back, the crossover happened two hours ago and the move already played out without you.
The default Moving Average indicator in MT4 doesn’t include crossover alerts. To get a moving average crossover alert on MT4, you need a custom indicator that monitors two MA lines and triggers notifications when they cross.
This tutorial walks you through installing and configuring an MA crossover alert indicator with popup, email, and push notification support.
Prerequisites
- MetaTrader 4 installed and connected to your broker (Build 1000+)
- MA Crossover Alert indicator (.ex4) – free download at the bottom of this page
- MT4 mobile app on your phone (for push notifications)
- Email SMTP details (for email alerts – Gmail or Outlook work fine)
New to custom indicators? See our guide on how to install custom indicators on MT4.
Step-by-Step: Setting Up MA Crossover Alerts on MT4
Step 1 – Download the MA Crossover Alert Indicator
Download the free MA Crossover Alert indicator from the link at the bottom of this page. Save the .ex4 file to your Desktop.
The indicator plots two moving averages and monitors them in real time. When the fast MA crosses above or below the slow MA, it fires your chosen alert on the closing candle.
Step 2 – Install the Indicator in MT4
- In MT4, click File > Open Data Folder
- Navigate to MQL4 > Indicators
- Paste the .ex4 file into that folder
- Back in MT4, right-click the Navigator panel and click Refresh

Step 3 – Apply the Indicator and Set Your MA Parameters
In the Navigator panel, expand Custom Indicators, find “MA Crossover Alert,” and drag it onto your chart. Configure the Inputs tab:
| Parameter | Description | Recommended Setting |
|---|---|---|
| Fast MA Period | Faster moving average period | 20 (day trading) or 50 (swing) |
| Slow MA Period | Slower moving average period | 50 (day trading) or 200 (swing) |
| MA Method | 0=SMA, 1=EMA, 2=SMMA, 3=LWMA | 1 (EMA) |
| Applied Price | 0=Close, 1=Open, 2=High, 3=Low | 0 (Close) |
The EMA responds faster than the SMA, making EMA crossovers better suited for shorter timeframes. For the Golden Cross (50/200) on the daily chart, many traders prefer the slow MA as an SMA.
Step 4 – Configure Your Alert Types
Still in the Inputs tab, scroll down to the alert settings:
- Popup Alert: Set to
truefor an on-screen popup with sound. Works immediately with no extra setup. - Email Alert: Set to
truefor email notifications. Requires SMTP configuration (next step). - Push Notification: Set to
truefor mobile alerts via the MT4 app.
Click OK to apply. You should see two MA lines on your chart.

Step 5 – Set Up Email and Push Notifications
Email alerts – go to Tools > Options > Email, check Enable, and enter:
- SMTP Server: smtp.gmail.com:465 (Gmail) or smtp.office365.com:587 (Outlook)
- SMTP Login/Password: Your email credentials (Gmail requires an App Password)
- From/To: Your sending and receiving email addresses
- Click Test to verify, then OK

Push notifications – install the MT4 mobile app, open Settings > Messages, and copy your MetaQuotes ID. In desktop MT4, go to Tools > Options > Notifications, enable push notifications, paste your MetaQuotes ID, and click Test.

Troubleshooting Common Issues
Alerts not firing: Right-click the indicator, select Properties > Common, and ensure “Allow DLL imports” is checked. Verify the smiley face icon shows in the chart corner (click AutoTrading if it’s frowning). Confirm alert types are set to true in inputs.
Email alerts not arriving: Gmail users must generate an App Password (Google Account > Security > App Passwords) instead of using their regular password. Check your spam folder, and use the Test button in Tools > Options > Email to isolate whether the issue is SMTP config or the indicator.
Push notifications not received: Double-check the MetaQuotes ID has no extra spaces. Force-close and reopen the MT4 mobile app. Ensure your phone’s notification permissions for MT4 are enabled.
Too many alerts: Switch to a higher timeframe or widen the gap between MA periods. A 20/50 combination generates far fewer signals than a 10/20 setup.
Pro Tips
- Run MT4 on a VPS for 24/5 alert coverage without leaving your computer on. Most brokers offer free VPS hosting for active accounts.
- Combine timeframes. Use a 50/200 daily crossover alert for trend direction, then trade 9/21 EMA pullbacks on the H1. The daily alert sets your bias; the H1 gives entries.
- Treat alerts as screening, not entries. When an alert fires, evaluate price action and support/resistance before trading. The crossover is a signal to pay attention, not an automatic trigger.
- Apply to multiple pairs. Attach the indicator to every chart you trade and let MT4 scan the market for you instead of manually checking each pair.
Frequently Asked Questions
Can the default MT4 Moving Average send crossover alerts?
No. The built-in Moving Average only plots the line on your chart. You need a custom indicator to receive popup, email, or push notifications when two MAs cross.
Why are my MT4 crossover alerts not firing?
The most common cause is disabled autotrading permissions. Check for the smiley face icon in the chart corner, ensure “Allow DLL imports” is checked in indicator properties, and confirm alert types are set to true in inputs.
Do MA crossover alerts work when MT4 is closed?
No. MT4 must be running for alerts to fire. For around-the-clock coverage, run MT4 on a VPS and use push notifications to receive alerts on your phone.
What is the best MA crossover combination for alerts?
For day trading on H1, the 20 EMA / 50 EMA crossover balances signal quality and frequency well. For swing trading on H4 or Daily, the 50 EMA / 200 SMA catches major trend shifts including Golden Cross and Death Cross events.
Can I set up MA crossover alerts on multiple pairs simultaneously?
Yes. Apply the indicator to each chart independently. You can customize MA periods and alert types per pair and timeframe.
Download MA Crossover Alert Indicator for MT4 – Free
Our MA Crossover Alert indicator includes:
- Dual MA crossover detection with customizable fast/slow periods and MA methods
- Three alert types – popup with sound, email notification, and mobile push
- Arrow signals plotted on the chart at each crossover point for visual reference
- Non-repainting – alerts fire on candle close only, so signals never disappear
Platform: MT4 (Build 1000+)
File type: .ex4
File size: 8 KB
Version: 1.2
Last updated: April 2026
By downloading, you agree to receive trading tips and indicator updates from ForexOBroker. Unsubscribe anytime.
Related Posts
- Moving Average (MA) Indicator MT4 – Full review with best settings and dual-MA crossover strategy
- EMA Indicator MT4 – Deep dive into exponential moving averages with the 9/21 crossover strategy
- See all Trend Indicators – Browse our complete trend indicator collection
- How to Install Custom Indicators on MT4
Trading forex involves significant risk of loss and is not suitable for all investors. Past performance is not indicative of future results. The indicators provided on ForexOBroker are for educational purposes only. Always use proper risk management and never trade with money you cannot afford to lose.