Loading…

MA Brk Out H V2

From the Old Kings archive: MA Brk Out H V2, an expert advisor (trading robot) for MetaTrader 4. Its name points to moving averages. The file name marks it as version 2. In the code it works with moving averages and ATR. It places pending orders, moves the stop behind price and has a trading-hours filter. It has 12 settings, for example i MAPeriod (default 20), i MAShift (default 1) and i MAType (default 0). 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 and a PDF guide. 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 · v2 · Free

About MA Brk Out H V2

MA Brk Out H V2 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and ATR. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and trades only in the hours you set (time filter). It has 12 settings, such as I ma period, I ma shift and I ma type. MQL source code included.

It also has a news filter.

Files in the download: TrailingAll_11.ex4, TrailingAll_11.mq4, MA_BrkOut_H_2.ex4, MA_BrkOut_H_2.mq4, MA_BrkOut_H_v2_Manual.pdf, ma_brkout_h.tpl, Текстовый документ.txt.

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

Settings

SettingDefaultWhat it does
I ma period20Period or timeframe used by the calculation
I ma shift1Bar shift (0 = current bar)
I ma type0: 0 - SMA, 1 - EMA
B if all day longfalse: true -
I start hour8(.. 8, 8:01);
I fin hour20(.., 20, 19:59);
I close all pos hour23(.., 23, ,
B force close or tptruebForceCloseOrTP==true iCloseAllPosHour
I min pips bar20, (., 22)
D lot0.1
I bars trailing3- ,
I trailing indent3Trailing stop distance or switch

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: Moving Average · Pending Orders · Trailing Stop & Break-even · Time Filter · News Trading · ATR · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria