Free Moving Average Cross
Version 2.1
©2008 EasyExpertForex.com
This
is a fully-functional expert advisor based on the popular moving
average cross strategy. This EA comes with a basic, yet comprehensive
set of features. Our paid EAs come with many more useful
features, such as money management, manual order control, spread and
margin protection, equity stops, flexible timers and more! Additional
features and modifications to this EA can be done at our standard
hourly rate.
This EA is for personal use only. Do not resell or redistribute these files! No support is provided for
this free version. Use at your own risk.
Installation
Simply
unzip the contents of the zip file into the \experts folder of your MT4
installation directory (usually located in C:\Program Files\).
Optimization
A
settings file is included in the \presets folder to assist you with
backtesting and optimizing settings. A tutorial on optimization is
available on our website.
Settings
- ExpertID
- The "magic number" used to identify orders placed by the expert
advisor. If you are running several expert advisors at once, make sure
the ExpertID is set to a unique value.
- Slippage
- The maximum allowed deviation from the quoted price. In case of rapid
market volatility, the desired opening price may be out of date. The
default setting of 5 allows you to open an order a maximum of 5 pips
from the desired opening price. If the slippage is set too small, you
will encounter requote errors and orders may not be placed.
- FixedLotSize - The lot size of opened orders. Default is 0.1. You may use micro lots (e.g. 0.01) if your broker allows it.
- FixedStopLoss - The stop loss in pips. Set to 0 to disable.
- FixedTakeProfit - The take profit in pips. Set to 0 to disable.
- FixedTrailingStop
- The trailing stop in pips. The stop will begin trailing at the
breakeven point. If the stop loss is less than the trailing stop, the
trailing stop will take precedence. Set to 0 to disable.
- MaxOrders - The maximum number of simultaneous orders. If this is greater than 1, a new order will open at every valid signal.
- FastMAPeriod - The period of the faster moving average. Must be less than the SlowMAPeriod.
- SlowMAPeriod - The period of the slow moving average.
- FastMAShift & SlowMAShift - The forward shift of the moving average line. Generally not used, but included for completeness.
- FastMAMethod & SlowMAMethod - The calculation method of the moving average line. Valid values are 0: Simple, 1: Exponential, 2: Smoothed, 3: Linear Weighted.
- FastMAPrice & SlowMAPrice - The price on which to calculate the moving average method. Valid values are 0: Close, 1: Open, 2: High, 3: Low, 4: Median, 5: Typical, 6: Weighted.
- OpenAtCross
- If true, an order will only open right after a moving average cross.
If false, a buy or sell order will open at any time, based on the
relationship of the faster moving average to the slower one.
- UseTimer - If true, the EA will only trade between the start and end times entered below. If false, the EA will always trade.
- StartTime - The start time in yyyy.mm.dd hh:mm format.
- EndTime - The end time in yyyy.mm.dd hh:mm format.
- UseLocalTime - If true, your computer's local time will be used for the start and end times. If false, the server time will be used.
- CloseAtEnd
- If true, all orders will be closed at the end time. If false, orders
will remain open until the stop loss or take profit is hit.
- RunOncePerBar - If true, orders will only be opened or closed at the beginning of a new bar. If false, orders will be executed at any time.