Matrix
Matrix is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses moving averages and fractals. It places pending orders and moves the stop behind price. It has 30 settings, for example All Symbols (default True), Trailing Stop (default 15) and Trailing Step (default 2). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 4 indicator files 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 Matrix
Matrix is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and Fractals. It places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 30 settings, such as All symbols, Trailing stop and Trailing step. MQL source code included.
Files in the download: e-SOTrailing.mq4, e-Trailing2.mq4, Fractal.mq4, FractalsExpert.mq4, УСТАТИВОКА_Matrix.doc.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| All symbols | True | |
| Trailing stop | 15 | Trailing stop distance or switch |
| Trailing step | 2 | Trailing stop distance or switch |
| Use sound | True | Turn this alert on or off |
| Show comment | True | Comment written on the orders |
| Cl modify buy | Aqua | |
| Cl modify sell | Tomato | |
| P expert | ---------- | |
| Magic | -1 | Magic number that tells this EA's orders apart |
| Ts profit only | True | |
| P performance | ---------- | |
| Sound success | expert.wav | Turn this alert on or off |
| Sound error | timeout.wav | Turn this alert on or off |
| Number of try | 5 | |
| Lot | 0.3 | Trade size in lots |
| Take | 600 | |
| Stop | 500 | Stop |
| E | 6 | |
| Stop div trand | 4 | ( ) - |
| Stop div flat | 5 | ( ) - |
| Limit div trend | 6 | |
| Limit div flat | 3 | |
| Ma div | 150 | / MA |
| Ma period | 5 | Period or timeframe used by the calculation |
| Ma shift | 0 | Bar shift (0 = current bar) |
| Use fixed stop | true | Stop Loss |
| Use fixed take | true | Take Profit |
| Use last fractal | false | |
| Trade on trand | true | |
| Trade on flat | true |
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: Pending Orders · Trailing Stop & Break-even · Moving Average · Fractals · MT4 Indicator · MQL4 Source Code