MQL4
MQL4 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its source code uses RSI, moving averages, CCI and ADX. It moves the stop behind price and can size trades from your risk. It has 40 settings, for example Fast Limit (default 0.5), Slow Limit (default 0.05) and mm (default -1). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 113 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 MQL4
MQL4 is an expert advisor (trading robot) for MetaTrader 4 based on RSI, Moving Average, CCI and ADX. It moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 40 settings, such as Fast limit, Slow limit and Mm. MQL source code included.
Files in the download: #MAMA.mq4, 2EMA_systemv032.mq4, 3D Oscilator.mq4, 3LineBreak.mq4, accelerator.mq4, adx.mq4, alligator.mq4, Alligator3.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 |
|---|---|---|
| Fast limit | 0.5 | |
| Slow limit | 0.05 | |
| Mm | -1 | |
| Lp | 300 | |
| Sp | 30 | |
| Slip | 5 | |
| Risk | 40 | Risk per trade (percent of balance) |
| Lots | 1.0 | Trade size in lots |
| Take profit | 360 | Take profit distance |
| Stoploss | 50 | Stop loss distance |
| Trailing stop | 15 | Trailing stop distance or switch |
| D1 rsi per | 13 | |
| D2 stoch per | 8 | |
| D3tunnel per | 8 | |
| Hot | 0.4 | |
| Sigsmooth | 4 | |
| Lines break | 3 | |
| Adx period | 14 | Period or timeframe used by the calculation |
| Jaws period | 13 | Period or timeframe used by the calculation |
| Jaws shift | 8 | Bar shift (0 = current bar) |
| Teeth period | 8 | Period or timeframe used by the calculation |
| Teeth shift | 5 | Bar shift (0 = current bar) |
| Lips period | 5 | Period or timeframe used by the calculation |
| Lips shift | 3 | Bar shift (0 = current bar) |
| Trend | 0 | |
| Trend shift | 0 | Bar shift (0 = current bar) |
| K | 30 | |
| Kstop | 0.5 | |
| Kperiod | 150 | Period or timeframe used by the calculation |
| Per adx | 14 | |
| Count bars | 350 | |
| Period ama | 9 | Number of bars in the calculation |
| Nfast | 2 | |
| Nslow | 30 | |
| G | 2.0 | |
| D k | 2.0 | |
| Aroon period | 14 | Period or timeframe used by the calculation |
| Filter | 50 | |
| Show comment | 0 | Comment written on the orders |
| Aroon period | 10 | Period or timeframe used by the calculation |
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: Trailing Stop & Break-even · Risk & Lot Size · RSI · Moving Average · CCI · ADX · MT4 Indicator · MQL4 Source Code