Download MA Cross Alert Once for MetaTrader 4

MA Cross Alert Once

MA Cross Alert Once

This tool for MetaTrader 4 is specifically engineered to streamline your trading operations. This technical indicator acts as a specialized analysis tool designed to visualize market data. It helps traders identify emerging trends, momentum shifts, and key support or resistance levels by plotting statistical calculations directly onto price charts.

How to Setup and Use MA Cross Alert Once

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

Description & Settings



When two Moving Averages cross the indicator will alert once per cross between crosses and mark the cross point with down or up arrow.

MA_Cross_Alert_Once_1a: Numerical input for MA Method and Price.

MA_Cross_Alert_Once_1b: Dropdown list selection for MA Method and Price.

The indicator will work on normal charts times, offline period converted charts (M2, M3, M7 etc)*, Offline Range Charts, Offline Renko Charts and should work with other non standard offline charts.

Possible enhancement indicator: Second-by-second candle count down timer, see here -

Possible enhancement indicator: Period Converter indicator →

Possible enhancement indicator: Close MA Cross, see here -
M1, M2, M3, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, M15, M20, M25, M30, M40, M50, H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12, D1, W1, MN

When the indicator is attached to the chart it may appear not to be working because no historical arrows are drawn. Note: The first arrow will appear on the chart at the first cross up or down after the indicator is attached to the chart.

The default MA settings are set for fast testing on a M1 charts with a 7 SMA, and in no way suggest optimum settings.
The fast MA is set Period=1, Method = 0(SMA), Shift=0, Price=0(Close). This equates to current price at close.
Explanation:

The user should define preferred settings. Various preferred settings can be saved and loaded via the Inputs tab → Save → Load. Alert Options

Popup Alert

Sound Only

Push Notification

If Sound Only = true and Popup Alert = true, Sound Only will function and Popup Alert will be cancelled.

All Alerts will correspond Broker Time and Date.

Note: If a candle count down timer is used with the indicator ensure that the computer time is synchronised with internet time. Left click date and time in lower right corner → change date and time settings → Internet Time → Change settings → ensure Synchronise with internet time server is ticked → click the Update Now → ensure a successful update.

Alerts will work with most Renko and Constant Range (Synthetic) candles. Alert Instructions Push Notification: (iOS and Android)

Push Notifications are fast, fail safe and easy to set up.

Speed will depend on capability of Internet Connection and Computer and Mobile Devices.

First install MT4 on Mobile Device.

Locate MetaQuotes ID., See - Messages or Messages in Settings

Enter MetaQuotes ID in Client Terminal of MT4 on computer (Tools → Options → Notifications).

Note: The same MetaQuotes ID can be used with multiple Client Terminals (different Brokers).

Click the Test.

Open up MT4 Terminal (Ctrl + T) and select the Journal Tab and check under Messages if the the Test was successful.

One a successful Test is obtained Push Notification Alerts can be set in the Alerts New Bar Indicator.

Important: Ensure that your mobile device has sound for notifications turned on.

If further clarification is required, google and YouTube "MT4 push notification." Email

Here is how to do it with stunnel.

First download the stunnel install file. If the following link is out of date or broken search the internet for a new stunnel download link.

Install stunnel. Note: During the the installation a black cmd screen opened requesting location information. I did not type in any information and merely pressed the Enter Key at every request untill the cmd screen closed. Note: On this current test I filled in UK and the remainder blank.

After installation a stunnel icon should be on the desktop. Click on the trunnel icon and open the stunnel configuration file. It should open in NotePad. Edit the stunnel.conf file in accordance with the above referenced Forum instructions. A copy of my edited file (stunnel.conf), current at Dec 2013, can be found in Stunnel Config.zip., See - Download.

Click the Test.

Open up MT4 Terminal (Ctrl + T) and select the Journal Tab and check under Messages if the the Test was successful.
Note:
In the tests associated with the previous mentioned posting only 127.0.0.1:25 worked. With this test, different machines and Windows OS, both 127.0.01:25 as suggested by Sangmane in the above referenced forum and smtp.gmail.com:25 worked.
Recommendation
The below Indicator MA crossover code is derived from the MQL4 Book documentation - Usage of Technical Indicators.
MQL4 Book documentation - Usage of Technical Indicators -
Fig. 107. Concurrence of the main and the signal lines of Stochastic Oscillator.

You May Also Like

RobotFX does not own any of the code provided on this platform. All tools are freely available on the internet; we simply index and re-offer them for download. We are not responsible for any financial losses that may occur. Trading responsibilities rely solely on the traders downloading and using the displayed Expert Advisors, indicators, and scripts. These tools are provided for educational purposes only and may require modification or optimization to align with a trader's specific strategy or needs.
© ROBOTFX - Best MetaTrader Expert Advisors & Indicators