You are on page 1of 5

Moving Average Cross Over indicator

By The Lazy Trader (http://www.the-lazy-trader.com)

Description

The Moving Average Cross Over is a highly customizable indicator that displays the cross of two
moving averages of your choice. The indicator sends alerts via email (with attached screenshot
of the chart), via mobile notification to your mobile device (Android, iPhone, iPad), and
additionally pop up message and/or sound alerts in the Metatrader platform. That’s four
different ways to alert the user. The periods of the moving averages can be customized, as well
as the method (Simple, Exponential, Smoothed, Weighted), the applied price (Close, Open, High
or Low) and the colors.

Here's the indicator in action displaying crosses of the 10 and 20 Simple Moving Averages:

This Moving Average Cross Over indicator was built for the Metatrader platform. The real
power and what makes it unique is its ability to alert the user via sound alarm, pop up message,
mobile notification and email with screen shot of the chart attached along with its high degree
of customization.

This product is property of Lazy Trading LLC company


Distribution and sale strictly prohibited
All Rights Reserved
Installation Instructions

In order to use the indicator you have to:

1- Download the Moving-Average-CrossOver.zip file.

2- Unzip the file. It contains the Moving Average CrossOver.ex4 indicator file and the
xpMail.dll.

3- Open the Metatrader’s data folder. For that, go to File -> Open Data Folder. A Windows
explorer shows up positioned in the data folder directory corresponding to your Metatrader
instance. Inside the data folder go to /MQL/Indicators/ and paste the indicator there. Go to
/MQL/Librares/ and paste the xpMail.dll there.

4- Restart your MT4 station.

5- Open a chart and go to Insert -> Indicators -> Custom -> Moving Average CrossOver.

This product is property of Lazy Trading LLC company


Distribution and sale strictly prohibited
All Rights Reserved
Parameters Configuration
Once the indicator is selected, you get the Parameters Dialog Box for the Indicator. Go to the
Inputs tab to configure your parameters.

a-) Fast and Slow Moving Average Settings

fastMovingAveragePeriod: Period length of evaluation of the Moving Average

fastMovingAverageMethod: Possible values are SMA = Simple, EMA = Exponential, SMMA =


Smoothed, LWMA = Linear Weighted

fastMovingAverageAppliedTo: Price used for the calculation of the moving average. Possible
values are CLOSE, OPEN, HIGH, LOW, MEDIAN.

slowMovingAveragePeriod: Period length of evaluation of the Moving Average

slowMovingAverageMethod: Possible values are SMA = Simple, EMA = Exponential, SMMA =


Smoothed, LWMA = Linear Weighted

slowMovingAverageAppliedTo: Price used for the calculation of the moving average possible
values are CLOSE, OPEN. HIGH, LOW, MEDIAN.

This product is property of Lazy Trading LLC company


Distribution and sale strictly prohibited
All Rights Reserved
b-) General Settings

displayPopUpAlert: true or false depending on whether you want an alert dialog inside
Metatrader to be displayed when a new crossover is confirmed.

displaySoundAlert: true or false depending on whether you want a sound alert to be played
when a new crossover is confirmed.

soundAlertFile: The sound file to be played if displaySoundAlert is set to true. The file must be
located in the /Sounds/ directory of your MetaTrader installation folder.

sendMobileAlert: true or false depending on whether you want to receive notifications in your
mobile device (Android, iPhone, iPad) when an alert is issued by the indicator. Your device must
be configured in MT4 via Tools -> Options -> Notifications. For more information visit this guide.

This product is property of Lazy Trading LLC company


Distribution and sale strictly prohibited
All Rights Reserved
c-) Email Settings

sendEmailAlert: Defines whether or not you want the indicator to send email alerts when a
signal is triggered.

server: The public SMTP server of your email provider. smtp.gmail.com is used by default.
Visit this page for information about other SMTP servers and configuration details (like Use of
SSL and Required Authentication) for the most popular email providers.

user: your complete email address

pass: your password

port: The Port open on your SMTP server of choice. For Gmail it is 465.

authType: Security layer type of your SMTP server. SSL is the most common one.

authenticate: Whether authentication is necessary in order to interact with the SMTP server of
your email provider. This is almost always true.

sendChartScreenShot: when set to true it will send an image of the price action chart attached
to the email alert.

I hope this indicator becomes useful in your trading, and that you can benefit from it.

This product is property of Lazy Trading LLC company


Distribution and sale strictly prohibited
All Rights Reserved

You might also like