Loading…

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

SettingDefaultWhat it does
Fast limit0.5
Slow limit0.05
Mm-1
Lp300
Sp30
Slip5
Risk40Risk per trade (percent of balance)
Lots1.0Trade size in lots
Take profit360Take profit distance
Stoploss50Stop loss distance
Trailing stop15Trailing stop distance or switch
D1 rsi per13
D2 stoch per8
D3tunnel per8
Hot0.4
Sigsmooth4
Lines break3
Adx period14Period or timeframe used by the calculation
Jaws period13Period or timeframe used by the calculation
Jaws shift8Bar shift (0 = current bar)
Teeth period8Period or timeframe used by the calculation
Teeth shift5Bar shift (0 = current bar)
Lips period5Period or timeframe used by the calculation
Lips shift3Bar shift (0 = current bar)
Trend0
Trend shift0Bar shift (0 = current bar)
K30
Kstop0.5
Kperiod150Period or timeframe used by the calculation
Per adx14
Count bars350
Period ama9Number of bars in the calculation
Nfast2
Nslow30
G2.0
D k2.0
Aroon period14Period or timeframe used by the calculation
Filter50
Show comment0Comment written on the orders
Aroon period10Period or timeframe used by the calculation

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Trailing Stop & Break-even · Risk & Lot Size · RSI · Moving Average · CCI · ADX · MT4 Indicator · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria