Martin Zig Zag Martingale
Martin Zig Zag Martingale — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its name points to the ZigZag swing tracer and martingale money management (bigger lots after a loss — high risk). Its source code uses ZigZag. It raises the lot size after losses (martingale — high risk), moves the stop behind price and has a trading-hours filter. It has 19 settings, for example Magic (default 20081107), Take Profit (default 45) and Lots (default 0.01). 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 Martin Zig Zag Martingale
Martin Zig Zag Martingale is an expert advisor (trading robot) for MetaTrader 4 based on ZigZag. It increases the lot size after a losing trade (martingale), moves the stop loss behind price (trailing stop / break-even) and trades only in the hours you set (time filter). It has 19 settings, such as Magic, Take profit and Lots. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: martin_ZigZag_martingale.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 |
|---|---|---|
| Magic | 20081107 | Magic number that tells this EA's orders apart |
| Take profit | 45 | Take profit distance |
| Lots | 0.01 | Trade size in lots |
| Initial stop | 300 | |
| Trailing stop | 45 | Trailing stop distance or switch |
| Max trades | 10 | Maximum number of open trades |
| Multiplier | 2 | How much the lot size grows after a loss |
| Pips | 30 | |
| Ordersto protect | 6 | |
| Money management | false | |
| Account type | 2 | 0: Standard account(NorthFinance,MiG,Alpari) 1: Normal account(FXLQ,FXDD) 2:InterbankFX's NANO Accou |
| Risk | 0.5 | Risk per trade (percent of balance) |
| Reverse signal | false | |
| Use time filter | false | |
| Stop trade | 18 | |
| Start trade | 19 | |
| Depth | 17 | 10-21 !15 !17 |
| Deviation | 7 | !7 |
| Backstep | 5 | !5 |
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 · ZigZag · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code