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
| Setting | Default | What it does |
|---|---|---|
| I ma period | 20 | Period or timeframe used by the calculation |
| I ma shift | 1 | Bar shift (0 = current bar) |
| I ma type | 0 | : 0 - SMA, 1 - EMA |
| B if all day long | false | : true - |
| I start hour | 8 | (.. 8, 8:01); |
| I fin hour | 20 | (.., 20, 19:59); |
| I close all pos hour | 23 | (.., 23, , |
| B force close or tp | true | bForceCloseOrTP==true iCloseAllPosHour |
| I min pips bar | 20 | , (., 22) |
| D lot | 0.1 | |
| I bars trailing | 3 | - , |
| I trailing indent | 3 | Trailing stop distance or switch |
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: Moving Average · Pending Orders · Trailing Stop & Break-even · Time Filter · News Trading · ATR · MT4 Expert Advisor · MQL4 Source Code