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
| Setting | Default | What it does |
|---|---|---|
| Order lot | 0.1 | |
| Money management | true | |
| Risk percent | 10 | Risk per trade (percent of balance) |
| Take profit | 0 | Fixed takeprofit in pips (0=no takeprofit) |
| Stop loss | 0 | Fixed stoploss in pips (0=no stoploss) |
| Equity stop loss percent | 20 | Stop loss distance |
| Equity take profit percent | 20 | Take profit distance |
| Range gap pips | 0.2 | |
| Enable entry medium slow cross | true | |
| Enable exit fast slow cross | true | |
| Fast ma period | 2 | Period or timeframe used by the calculation |
| Fast ma shift | 0 | Bar shift (0 = current bar) |
| Fast ma method | 0 | |
| Fast ma apply price | 0 | |
| Medium ma period | 8 | Period or timeframe used by the calculation |
| Medium ma shift | 0 | Bar shift (0 = current bar) |
| Medium ma method | 0 | |
| Medium ma apply price | 0 | |
| Slow ma period | 16 | Period or timeframe used by the calculation |
| Slow ma shift | 0 | Bar shift (0 = current bar) |
| Slow ma method | 0 | |
| Slow ma apply price | 0 | |
| Start trading hour | 0 | |
| Start trading minute | 0 | |
| End trading hour | 24 | |
| End trading minute | 0 | |
| Max trades | 2 | Maximum number of open trades |
| Signal bar | 0 | |
| Magic number | 112413 | Magic number that tells this EA's orders apart |
| Slippage | 5 | Allowed slippage of open/close order |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Moving Average · Pending Orders · Time Filter · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code