AO Trend
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called AO Trend. Its name points to the Awesome Oscillator and following the trend. In the code it works with MACD. It raises the lot size after losses (martingale — high risk) and can hold buy and sell positions together. It has 23 settings, for example use daily target (default false), daily target (default 100) and Each Tick Mode (default True). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. Inside: 2 EA 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 AO Trend
AO Trend is an expert advisor (trading robot) for MetaTrader 4 based on MACD. It increases the lot size after a losing trade (martingale) and can hold buy and sell positions at the same time (hedging). It has 23 settings, such as Use daily target, Daily target and Each tick mode. MQL source code included.
Files in the download: AO-TREND.ex4, AO-TREND.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 |
|---|---|---|
| Use daily target | false | |
| Daily target | 100 | |
| Each tick mode | True | |
| Trade in fri | true | |
| Magic | 1 | Magic number that tells this EA's orders apart |
| Start lot | 0.1 | |
| Range | 25 | |
| Level | 10 | |
| Lot multiplier | true | How much the lot size grows after a loss |
| Multiplier | 2.0 | How much the lot size grows after a loss |
| Increament | 0.1 | |
| Use sl and tp | false | |
| Sl | 60 | Stop loss distance |
| Tp | 30 | Take profit distance |
| Tp in money | 5.0 | |
| Stealth mode | true | |
| Separator 01 | ----- Additional ----- | |
| Hedge | false | |
| Hedge start | 4 | |
| H lot factor | 0.5 | |
| H tp factor | 1.0 | |
| Lot multiplier 2 | 1.5 | How much the lot size grows after a loss |
| Lot multi 2 level | 3 |
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: Trend · Martingale · Hedging · MACD · MT4 Expert Advisor · MQL4 Source Code