Loading…

3 Moving Average Ea

3 Moving Average Ea — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. As the name suggests, the idea behind it is moving averages. Its source code uses moving averages. It places pending orders, has a trading-hours filter and can size trades from your risk. It has 30 settings, for example order lot (default 0.1), money management (default true) and risk percent (default 10). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Expert advisor · MT4 · v1.0 · Free

About 3 Moving Average Ea

3 Moving Average Ea is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It places pending buy/sell stop or limit orders, trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 30 settings, such as Order lot, Money management and Risk percent. MQL source code included.

Files in the download: X3MA_EA_V2_0.mq4, Best Trading Systems.url.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Order lot0.1
Money managementtrue
Risk percent10Risk per trade (percent of balance)
Take profit0Fixed takeprofit in pips (0=no takeprofit)
Stop loss0Fixed stoploss in pips (0=no stoploss)
Equity stop loss percent20Stop loss distance
Equity take profit percent20Take profit distance
Range gap pips0.2
Enable entry medium slow crosstrue
Enable exit fast slow crosstrue
Fast ma period2Period or timeframe used by the calculation
Fast ma shift0Bar shift (0 = current bar)
Fast ma method0
Fast ma apply price0
Medium ma period8Period or timeframe used by the calculation
Medium ma shift0Bar shift (0 = current bar)
Medium ma method0
Medium ma apply price0
Slow ma period16Period or timeframe used by the calculation
Slow ma shift0Bar shift (0 = current bar)
Slow ma method0
Slow ma apply price0
Start trading hour0
Start trading minute0
End trading hour24
End trading minute0
Max trades2Maximum number of open trades
Signal bar0
Magic number112413Magic number that tells this EA's orders apart
Slippage5Allowed slippage of open/close order

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Moving Average · Pending Orders · Time Filter · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria