MACD Cross Martingale EA Ver 4
MACD Cross Martingale EA Ver 4 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Judging by its name, it is built around MACD (moving average convergence / divergence) and martingale money management (bigger lots after a loss — high risk). This copy is version 4. Its source code uses MACD. It raises the lot size after losses (martingale — high risk), can hold buy and sell positions together and moves the stop behind price. It has 40 settings, for example S1 (default ---------------- Entry S), Fast EMA (default 12) and Slow EMA (default 26). 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.0 · Free
About MACD Cross Martingale EA Ver 4
MACD Cross Martingale EA Ver 4 is an expert advisor (trading robot) for MetaTrader 4 based on MACD. It increases the lot size after a losing trade (martingale), can hold buy and sell positions at the same time (hedging) and moves the stop loss behind price (trailing stop / break-even). It has 40 settings, such as S1, Fast ema and Slow ema. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: MACD Cross Martingale EA Ver 4.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 |
|---|---|---|
| S1 | ---------------- Entry Settings | |
| Fast ema | 12 | |
| Slow ema | 26 | |
| Macdsma | 9 | |
| S2 | ---------------- Money Management | |
| Lots | 0.1 | |-----------------------lots size |
| Risk mm | false | |---------------------risk management |
| Risk percent | 1 | |------------------risk percentage |
| Martingale | false | |-----------------martingale |
| Multiplier1 | 2.0 | |-----------------multiplier martingale |
| Multiplier2 | 3.0 | |-----------------multiplier martingale |
| Multiplier3 | 4.0 | |-----------------multiplier martingale |
| Multiplier4 | 5.0 | |-----------------multiplier martingale |
| Multiplier5 | 6.0 | |-----------------multiplier martingale |
| Multiplier6 | 7.0 | |-----------------multiplier martingale |
| Multiply count | How much the lot size grows after a loss | |
| Min lots | 0.01 | |-------------------minlots |
| Max lots | 100 | |--------------------maxlots |
| Basket profit loss | false | |-----------use basket loss/profit |
| Basket profit | 100000 | |---------------if equity reaches this level, close trades |
| Basket loss | 9999 | |-------------------if equity reaches this negative level, close trades |
| S3 | ---------------- Order Management | |
| Stop loss | 0 | |------------------------stop loss |
| Take profit | 0 | |----------------------take profit |
| Hide sl | false | |---------------------hide stop loss |
| Hide tp | false | |---------------------hide take profit |
| Trailing stop | 0 | |--------------------trailing stop |
| Trailing step | 0 | |--------------------trailing step |
| Break even | 0 | |-----------------------break even |
| Max orders | 1 | |---------------------maximum orders allowed |
| Slippage | 3 | |------------------------slippage |
| Magic | 2009 | |------------------------magic number |
| S4 | ---------------- MA Filter | |
| Ma filter | false | |-------------------moving average filter |
| Ma period | 20 | |-----------------------ma filter period |
| Ma method | 0 | |------------------------ma filter method |
| Ma price | 0 | |-------------------------ma filter price |
| S5 | ---------------- Time Filter | |
| Trade on sunday | true | |---------------time filter on sunday |
| Monday to thursday time filter | false | |-time filter the week |
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: Martingale · MACD · Hedging · Trailing Stop & Break-even · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code