Milestone 20.5
Milestone 20.5 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its source code uses moving averages. It can hold buy and sell positions together, moves the stop behind price and has a trading-hours filter. It has 40 settings, for example Close All (default false), Continue Trading (default true) and Enable Calendar (default false). Watch it on a demo account for a while — robots can behave differently with each broker. 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 Milestone 20.5
Milestone 20.5 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It can hold buy and sell positions at the same time (hedging), moves the stop loss behind price (trailing stop / break-even) and trades only in the hours you set (time filter). It has 40 settings, such as Close all, Continue trading and Enable calendar. MQL source code included.
It also can size trades from your balance and risk percent and has a news filter.
Files in the download: milestone-20 (1).5.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 |
|---|---|---|
| Close all | false | |
| Continue trading | true | |
| Enable calendar | false | |
| Include high | true | |
| Include medium | false | |
| Include low | false | |
| Include speaks | true | |
| Safe spread | true | Maximum spread allowed to trade |
| Safe growth | true | |
| Safe exits | true | |
| Allow hedge | false | |
| Enable stop | false | |
| Trade friday | false | |
| Aggressive | false | |
| Signal a | true | |
| Signal b | true | |
| Signal c | true | |
| Signal d | true | |
| Signal a start hour | 0 | Hour when trading starts (server time) |
| Signal a end hour | 23 | Hour when trading stops (server time) |
| Signal b start hour | 0 | Hour when trading starts (server time) |
| Signal b end hour | 23 | Hour when trading stops (server time) |
| Signal c start hour | 0 | Hour when trading starts (server time) |
| Signal c end hour | 23 | Hour when trading stops (server time) |
| Signal d start hour | 0 | Hour when trading starts (server time) |
| Signal d end hour | 23 | Hour when trading stops (server time) |
| Max trades | 7 | Maximum number of open trades |
| Refresh hours | 24 | |
| Lead calendar minutes | 240 | |
| Trail calendar minutes | 480 | Trailing stop distance or switch |
| Sleep seconds | 14400 | |
| Basket profit | 1.1 | |
| Open profit | 0.005 | |
| Min profit | 0.007 | |
| Safe profit | 0.005 | |
| Stop growth | 0.005 | |
| Daily growth | 0.015 | |
| Relative stop | 0.3 | |
| Query history | 14 | |
| Trend space | 15 |
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: Hedging · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · News Trading · Moving Average · MT4 Expert Advisor · MQL4 Source Code