H4 Break Out Cycle V1a 4
H4 Break Out Cycle V1a 4 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its name points to breakouts from a range. It raises the lot size after losses (martingale — high risk), works with a grid of orders and places pending orders. It has 40 settings, for example gen (default ----General inputs----), Trading Time Frame (default PERIOD_CURRENT) and Every Tick Mode (default true). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. Inside: 1 EA file 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 · v1a · Free
About H4 Break Out Cycle V1a 4
H4 Break Out Cycle V1a 4 is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and places pending buy/sell stop or limit orders. It has 40 settings, such as Gen, Trading time frame and Every tick mode. MQL source code included.
It also moves the stop loss behind price (trailing stop / break-even), trades only in the hours you set (time filter) and can size trades from your balance and risk percent.
Files in the download: H4_BreakOut_Cycle_V1a.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 |
|---|---|---|
| Gen | ----General inputs---- | |
| Trading time frame | PERIOD_CURRENT | Period or timeframe used by the calculation |
| Every tick mode | true | |
| Lot | 0.02 | Trade size in lots |
| Risk percent | 0 | Set to zero to disable and use Lot |
| Lots per dollop of cash | 0 | Over rides Lot. Zero input to cancel. |
| Size of dollop | 1000 | |
| Use balance | false | |
| Use equity | true | |
| Stop trading | false | |
| Setup007 | true | |
| Trade long | true | |
| Trade short | true | |
| Take profit pips | 60 | Take profit distance |
| Stop loss pips | 0 | Stop loss distance |
| Basket trail | false | Trailing stop distance or switch |
| Magic number | 0 | Magic number that tells this EA's orders apart |
| Trade comment | H4_BreakOut_Cycle | Comment written on the orders |
| Is global prime or ecn criminal | false | |
| Max slippage pips | 5 | Maximum slippage allowed when opening a trade |
| Post trade attempt wait seconds | 2 | Defaults to 10 minutes |
| Sep2c | ======================================== | |
| Mpp | ---- Minimum pips in between same-pair t | |
| Min distance between trades pips | 7 | Distance between orders |
| Sep1 | ======================================== | |
| Hgic | ======== HGI choices ======== | |
| Hgi | -- HGI Inputs -- | |
| Hgi time frame | PERIOD_M5 | Period or timeframe used by the calculation |
| Close on large arrows | false | |
| Close on blue wavy | false | |
| Only close winning trades | false | |
| Sep2 | ======================================== | |
| Sepb | ======================================== | |
| Off | ---- Offsetting ---- | |
| Use offsetting | false | Simple offset and double-sided complex offset |
| Allow complex single sided offsets | false | Allow complex single-sided offset. Not allowed if UseOffsetting = false |
| Min open trades to start offset | 3 | Only use offsetting if there are at least this number of trades in the group |
| Sep2a | ======================================== | |
| Ubp | ---- Unbalanced positions inputs ---- | |
| Position is unbalanced at | 7 | The difference between open buys and sells to constitute an unbalanced position. |
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: Breakout · Martingale · Grid · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code