MA Crossover Expert V1
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called MA Crossover Expert V1. Judging by its name, it is built around moving averages. The file name marks it as version 1. In the code it works with moving averages. It places pending orders, moves the stop behind price and can size trades from your risk. It has 20 settings, for example Debug (default false), Account Is Mini (default false) and Money Management (default true). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. 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 · Free
About MA Crossover Expert V1
MA Crossover Expert V1 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 20 settings, such as Debug, Account is mini and Money management. MQL source code included.
It also works on several symbols at once.
Files in the download: MA_Crossover_expert_v1.mq4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Debug | false | Change to true to allow print |
| Account is mini | false | Change to true if trading mini account |
| Money management | true | Change to false to shutdown money management controls. |
| Riskpercent | 5 | Change to whatever percent of equity you wish to risk. |
| Decrease factor | 3 | Used to decrease lot size after a loss is experienced to protect equity. Recommended not to change. |
| Stop loss | 35 | Maximum pips willing to lose per position. |
| Trailing stop | 0 | Change to whatever number of pips you wish to trail your position with. |
| Margincutoff | 800 | Expert will stop trading if equity level decreases to that level. |
| Maxtrades | 10 | Total number of positions on all currency pairs. You can change this number as you wish. |
| Take profit | 0 | Maximum profit level achieved. |
| Slippage | 10 | Possible fix for not getting filled or closed |
| Faster mode | 3 | 0=sma, 1=ema, 2=smma, 3=lwma, 4 = lsma |
| Fast ma period | 5 | Period or timeframe used by the calculation |
| Slower mode | 1 | 0=sma, 1=ema, 2=smma, 3=lwma, 4 = lsma |
| Slow ma period | 120 | Period or timeframe used by the calculation |
| Use juice | false | |
| Juice period | 7 | Period or timeframe used by the calculation |
| Juice level | 4 | |
| Lots | 1 | standard lot size. |
| Turnon | true | Turns expert on, change to false and no trades will take place even if expert is enabled. |
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 · Trailing Stop & Break-even · Risk & Lot Size · Multi-Currency · MT4 Expert Advisor · MQL4 Source Code