Loading…

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

SettingDefaultWhat it does
Gen----General inputs----
Trading time framePERIOD_CURRENTPeriod or timeframe used by the calculation
Every tick modetrue
Lot0.02Trade size in lots
Risk percent0Set to zero to disable and use Lot
Lots per dollop of cash0Over rides Lot. Zero input to cancel.
Size of dollop1000
Use balancefalse
Use equitytrue
Stop tradingfalse
Setup007true
Trade longtrue
Trade shorttrue
Take profit pips60Take profit distance
Stop loss pips0Stop loss distance
Basket trailfalseTrailing stop distance or switch
Magic number0Magic number that tells this EA's orders apart
Trade commentH4_BreakOut_CycleComment written on the orders
Is global prime or ecn criminalfalse
Max slippage pips5Maximum slippage allowed when opening a trade
Post trade attempt wait seconds2Defaults to 10 minutes
Sep2c========================================
Mpp---- Minimum pips in between same-pair t
Min distance between trades pips7Distance between orders
Sep1========================================
Hgic======== HGI choices ========
Hgi-- HGI Inputs --
Hgi time framePERIOD_M5Period or timeframe used by the calculation
Close on large arrowsfalse
Close on blue wavyfalse
Only close winning tradesfalse
Sep2========================================
Sepb========================================
Off---- Offsetting ----
Use offsettingfalseSimple offset and double-sided complex offset
Allow complex single sided offsetsfalseAllow complex single-sided offset. Not allowed if UseOffsetting = false
Min open trades to start offset3Only use offsetting if there are at least this number of trades in the group
Sep2a========================================
Ubp---- Unbalanced positions inputs ----
Position is unbalanced at7The difference between open buys and sells to constitute an unbalanced position.

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: Breakout · Martingale · Grid · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria