Loading…

MACD Pattern

From the Old Kings archive: MACD Pattern, an expert advisor (trading robot) for MetaTrader 4. As the name suggests, the idea behind it is MACD (moving average convergence / divergence) and candlestick patterns. In the code it works with MACD. It raises the lot size after losses (martingale — high risk), places pending orders and moves the stop behind price. It has 40 settings, for example minstoploss (default 15), m Lots (default 0.1) and p1 (default 1(A)). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 4 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 MACD Pattern

MACD Pattern is an expert advisor (trading robot) for MetaTrader 4 based on MACD. It increases the lot size after a losing trade (martingale), places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 40 settings, such as Minstoploss, M lots and P1. MQL source code included.

It also can size trades from your balance and risk percent and has a news filter.

Files in the download: MACD_Pattern.mq4, AmazingEA.mq4, HAN.mq4, HAN_Z-Score.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Minstoploss15Stop loss distance
M lots0.1
P1 1(A)
P1enabletrue
Stoplossbars122Stop loss distance
Takeprofitbars132Take profit distance
Otstup140
Lowema113
Fastema124
Maxur10.0095
Minur1-0.0045
P2 2(B)
P2enabletrue
Stoplossbars22Stop loss distance
Takeprofitbars22Take profit distance
Otstup250
Lowema27
Fastema217
Maxur20.0045
Minur2-0.0035
P3 3(C)
P3enabletrue
Stoplossbars38Stop loss distance
Takeprofitbars312Take profit distance
Otstup32
Lowema32
Fastema332
Maxur30.0015
Maxur130.004
Minur3-0.005
Minur13-0.0005
P4 4(D)
P4enabletrue
Stoplossbars410Stop loss distance
Takeprofitbars432Take profit distance
Otstup445
Lowema49
Fastema44
Sum bars bup410
Maxur40.0165

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: MACD · Martingale · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · News Trading · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria