• Overview
  • Reviews (1)
  • Comments (25)
  • What's new

MA strategies EA

MA strategies EA is a moving average cross EA that can support multiple MA cross strategies that involve two or three moving averages. Purchasing this EA can save you the time taken to automate your existing MA strategy through coding a custom EA and it also helps you discover profitable moving average strategies as its fully compatible with the strategy tester and all settings are editable. The EA supports both scalping, short term and long term strategies. The various supported settings are explained below:

NOTE: The default settings in the EA are simply place holders. Before using the EA, please enter your own settings that work for you best.

Trade settings

  • Lots- This is the lot size for opening trades. If this value is greater than zero, then fixed lots will be used.
  • RiskPercentage- The percentage of free margin to risk in a trade. The Lots setting must be left as 0 to use this setting instead.
  • TakeProfit- The fixed take profit valuein points. If 0 then no take profit will be set.
  • StopLoss- The fixed stop loss value in points. If 0 then no stop loss will be set.
  • CloseOnReverseSignal- If set to 1 or true, then trades will be closed if a trade signal opposite the one that opened the trade appears.
  • WaitForCrossBarClose- A trade will only occur after the bar where the cross occured closes.
  • OneTradeAtAtime- If set to true, then only one trade will be opened at a time.
  • MaximumTrades- If this setting is greater than 0, then the EA will be limited to a maximum of this number of trades at any one time.

Settings for trailing stop;

  • AllowTrailingStop- This setting must be set to true if trailing stop is to activate.
  • TrailDistance- The trailing stop will be this distance in points away from the price.
  • TrailTrigger- The trailing stop will only start when the trade is at least this number of points in profit.
  • TrailStep- After the trailing is active, a new modification will only occur when there is at least a change of this points. This prevents too many trade modifications on every little price change and hence saves on memory usage.

First MA settings:

  • Ma1period- Period value for first MA.
  • Ma1shift- Shift value for first MA.
  • Ma1method- Moving average method. Set 0 for simple, 1 for exponential, 2 for smoothed and 3 for linear weighted.
  • Ma1appliedPrice- Moving average applied price. Set 0 for close price, 1 for open price, 2 for maximum price, 3 for minimum price, 4 for median price, 5 for typical price and 6 for weighted close price.
Second MA settings:
  • Ma2period- Period value for second MA.
  • Ma2shift- Shift value for second MA.
  • Ma2method- Moving average method. Set 0 for simple, 1 for exponential, 2 for smoothed and 3 for linear weighted.
  • Ma2appliedPrice- Moving average applied price. Set 0 for close price, 1 for open price, 2 for maximum price, 3 for minimum price, 4 for median price, 5 for typical price and 6 for weighted close price.

Settings for filter MA:

  • ActivateFilterMA- Activates or deactivates the third or filter MA.
  • FMAperiod- Period value for third MA.
  • FMAshift- Shift value for third MA.
  • FMAmethod- Moving average method. Set 0 for simple, 1 for exponential, 2 for smoothed and 3 for linear weighted.
  • FMAappliedPrice- Moving average applied price. Set 0 for close price, 1 for open price, 2 for maximum price, 3 for minimum price, 4 for median price, 5 for typical price and 6 for weighted close price.
  • MagicNumber- Magic number for the EA. Must be different on each attachment only if attached to multiple charts of the same currency pair.
  • BrokerIsFiveDigit- Set to true if your broker is five digit. If your EUR/USD has five decimal places then your broker is five digit.

In the EA, a buy signal or uptrend is when the first ma crosses the second MA upwards and if the filter MA is activated then the filter must be below the price too. A sell signal or downtrend is when the first MA crosses the second MA downwards and if the filter MA is activated then the filter must be above the price too.

yannis72400
167
2018.02.15 04:12 
 

Still needs a few bugs to be ironed out. Trailing stop does not work unless you have a SL set at the start. Needs a filter to eliminate the weak crossovers.

Version 1.3 - 2017.11.24
Bug on FMA sorted.
Version 1.2 - 2017.10.30
Several bugs have been sorted.
Version 1.1 - 2017.07.07
Update on functionality of the MA filter when turned on to remove a bug. In this version, the FMA is checked for its position above or below the other two MAs rather than the current price.