🚀 Join the Dove Forex Markets Affiliate Program and earn up to 40% per each sale! 💰📈 Register Now >

BREAKOUT IN 4HRS

BREAKOUT IN 4HRS
Premium

PLATFORM & SOFTWARE TYPE
🖥️ PLATFORM: MT4 • SOFTWARE TYPE: EA
BREAKOUT IN 4HRS is your dedicated MetaTrader 4 Expert Advisor engineered to help you capitalize on significant market movements with precision and automated management.

📈 TRADING STRATEGY
This EA focuses on identifying and acting on potential breakout opportunities, primarily analyzed on the 4-hour timeframe. It’s designed to automatically enter trades when specific market conditions align with breakout logic, then manage those positions using a sophisticated suite of risk and trade management tools. Instead of relying solely on entry, BREAKOUT IN 4HRS emphasizes adaptive post-entry management to help protect capital and optimize potential returns through various exit strategies.

🎯 BEST FOR
* Traders seeking automated execution of breakout strategies.
* Those who value comprehensive risk management, including advanced offsetting and position recovery features.
* Users wanting customizable trade exits, from standard Take Profit to dynamic trailing stops and HGI-driven closures.
* Individuals looking for 'stealth' stop loss and take profit options to help mitigate potential market observation.
* Traders who require robust control over trading hours, days, and rollover periods.

⚙️ SETTINGS AND PARAMETERS
* Flexible lot sizing and risk management (fixed lot, percentage risk, or equity-based).
* Configurable Take Profit and Stop Loss levels, including stealth options.
* Advanced trade management: Break-even, partial closing, jumping stop loss, and candlestick trailing stops.
* Specific time-based filters for trading hours, days, and rollover periods.
* Integration with HGI for optional trade closure signals.
* Offsetting and unbalanced position management to navigate complex market scenarios.
* Minimum distance between trades and safety checks to prevent overtrading.
* Customizable slippage control and margin level checks.
🔧 USER INPUTS (EX4/EX5) — what each setting does
• gen — Controls the “gen” parameter (string). (default: "----General inputs----")
• TradingTimeFrame — Controls the “TradingTimeFrame” parameter (ENUM_TIMEFRAMES). (default: PERIOD_CURRENT)
• EveryTickMode — Controls the “EveryTickMode” parameter (bool). (default: true)
• Lot — Fixed lot size when Money Management is off. (default: 0.02)
• RiskPercent — Set to zero to disable and use Lot (default: 0)
• LotsPerDollopOfCash — Over rides Lot. Zero input to cancel. (default: 0)
• SizeOfDollop — Controls the “SizeOfDollop” parameter (double). (default: 1000)
• UseBalance — Controls the “UseBalance” parameter (bool). (default: false)
• UseEquity — Controls the “UseEquity” parameter (bool). (default: true)
• StopTrading — extern int MaxTradesAllowed=1;//For multi-trade EA's (default: false)
• Setup007 — Controls the “Setup007” parameter (bool). (default: true)
• TradeLong — Controls the “TradeLong” parameter (bool). (default: true)
• TradeShort — Controls the “TradeShort” parameter (bool). (default: true)
• TakeProfitPips — Take profit distance (usually in points/pips). (default: 60)
• StopLossPips — Protective stop distance (usually in points/pips). (default: 0)
• BasketTrail — Controls the “BasketTrail” parameter (bool). (default: false)
• MagicNumber — Unique Magic Number to separate trades. (default: 0)
• TradeComment — Controls the “TradeComment” parameter (string). (default: "H4_BreakOut_Cycle")
• IsGlobalPrimeOrECNCriminal — Controls the “IsGlobalPrimeOrECNCriminal” parameter (bool). (default: false)
• MaxSlippagePips — Max price slippage allowed on order execution. (default: 5)
• PostTradeAttemptWaitSeconds — Defaults to 10 minutes (default: 2)
• sep2c — Controls the “sep2c” parameter (string). (default: "================================================================")
• mpp — Controls the “mpp” parameter (string). (default: "---- Minimum pips in between same-pair trades ----")
• MinDistanceBetweenTradesPips — Controls the “MinDistanceBetweenTradesPips” parameter (int). (default: 7)
• sep1 — Hgi is used to close profitable trades (default: "================================================================")
• hgic — Controls the “hgic” parameter (string). (default: "======== HGI choices ========")
• hgi — Controls the “hgi” parameter (string). (default: "-- HGI Inputs --")
• HgiTimeFrame — Controls the “HgiTimeFrame” parameter (ENUM_TIMEFRAMES). (default: PERIOD_M5)
• CloseOnLargeArrows — Controls the “CloseOnLargeArrows” parameter (bool). (default: false)
• CloseOnBlueWavy — Controls the “CloseOnBlueWavy” parameter (bool). (default: false)
• OnlyCloseWinningTrades — Controls the “OnlyCloseWinningTrades” parameter (bool). (default: false)
• sep2 — Controls the “sep2” parameter (string). (default: "================================================================")
• sepb — Controls the “sepb” parameter (string). (default: "================================================================")
• off — Controls the “off” parameter (string). (default: "---- Offsetting ----")
• UseOffsetting — Simple offset and double-sided complex offset (default: false)
• AllowComplexSingleSidedOffsets — Allow complex single-sided offset. Not allowed if UseOffsetting = false (default: false)
• MinOpenTradesToStartOffset — Only use offsetting if there are at least this number of trades in the group (default: 3)
• sep2a — Controls the “sep2a” parameter (string). (default: "================================================================")
• ubp — Controls the “ubp” parameter (string). (default: "---- Unbalanced positions inputs ----")
• PositionIsUnbalancedAt — The difference between open buys and sells to constitute an unbalanced position. (default: 7)
• rec — Set this to a high value to disable the feature. (default: "-- Offsetting for unbalanced positions --")
• UseOffsettingForBalanceRecovery — Controls the “UseOffsettingForBalanceRecovery” parameter (bool). (default: false)
• AllowComplexSingleSidedOffsetsRecovery — Allow complex single-sided offset. Not allowed if UseOffsetting = false (default: false)
• MinTradesToStartUnbalancedOffset — Controls the “MinTradesToStartUnbalancedOffset” parameter (int). (default: 6)
• nco — Controls the “nco” parameter (string). (default: "-- Nuclear option closure --")
• UseInstantClosure — Close the position the moment it becomes unbalanced. (default: false)
• UseMarginLevelClosure — Only close when the margin level drops (default: false)
• ClosureMarginLevel — to this point. (default: 500)
• sep1a — Controls the “sep1a” parameter (string). (default: "================================================================")
• sfs — Controls the “sfs” parameter (string). (default: "----SafetyFeature----")
• MinMinutesBetweenTradeOpenClose — For spotting possible rogue trades (default: 0)
• MinMinutesBetweenTrades — Minimum time to pass after a trade closes, until the ea can open another. (default: 0)
• sep3 — Controls the “sep3” parameter (string). (default: "================================================================")
• hts — Hidden tp/sl inputs. (default: "----Stealth stop loss and take profit inputs----")
• PipsHiddenFromCriminal — Added to the 'hard' sl and tp and used for closure calculations (default: 0)
• sep7 — Controls the “sep7” parameter (string). (default: "================================================================")
• trh — CheckTradingTimes. Baluda has provided all the code for this. Mny thanks Paul; you are a star. (default: "----Trading hours----")
• tr1 — Controls the “tr1” parameter (string). (default: "tradingHours is a comma delimited list")
• tr1a — Controls the “tr1a” parameter (string). (default: "of start and stop times.")
• tr2 — Controls the “tr2” parameter (string). (default: "Prefix start with '+', stop with '-'")
• tr2a — Controls the “tr2a” parameter (string). (default: "Use 24H format, local time.")
• tr3 — Controls the “tr3” parameter (string). (default: "Example: '+07.00,-10.30,+14.15,-16.00'")
• tr3a — Controls the “tr3a” parameter (string). (default: "Do not leave spaces")
• tr4 — Controls the “tr4” parameter (string). (default: "Blank input means 24 hour trading.")
• tradingHours — Controls the “tradingHours” parameter (string). (default: "")
• sep1de — Controls the “sep1de” parameter (string). (default: "================================================================")
• fssmt — Controls the “fssmt” parameter (string). (default: "---- Inputs applied to individual days ----")
• FridayStopTradingHour — Ignore signals at and after this time on Friday. (default: 22)
• FridayCloseAllHour — Friday time to close all open trades/delete stop orders for the weekend. (default: 22)
• SaturdayStopTradingHour — For those in Upside Down Land. (default: 24)
• SaturdayCloseAllHour — For those in Upside Down Land. (default: 24)
• MaxAllowableCashLoss — Only close all trades when the negative cash upl is less than this. (default: -20)
• TradeSundayCandle — Converted into a negative value in OnInit() (default: false)
• MondayStartHour — 24h local time (default: 1)
• sep7b — This code by tomele. Thank you Thomas. Wonderful stuff. (default: "================================================================")
• roll — Controls the “roll” parameter (string). (default: "---- Rollover time ----")
• DisableEaDuringRollover — Controls the “DisableEaDuringRollover” parameter (bool). (default: true)
• ro1 — Controls the “ro1” parameter (string). (default: "Use 24H format, SERVER time.")
• ro2 — Controls the “ro2” parameter (string). (default: "Example: '23.55'")
• RollOverStarts — Controls the “RollOverStarts” parameter (string). (default: "23.55")
• RollOverEnds — Controls the “RollOverEnds” parameter (string). (default: "00.15")
• sep10 — Controls the “sep10” parameter (string). (default: "================================================================")
• amc — Controls the “amc” parameter (string). (default: "----Available Margin checks----")
• sco — Controls the “sco” parameter (string). (default: "Scoobs")
• UseScoobsMarginCheck — Controls the “UseScoobsMarginCheck” parameter (bool). (default: false)
• fk — Controls the “fk” parameter (string). (default: "ForexKiwi")
• UseForexKiwi — Controls the “UseForexKiwi” parameter (bool). (default: false)
• FkMinimumMarginPercent — Controls the “FkMinimumMarginPercent” parameter (int). (default: 300)
• sep11 — Controls the “sep11” parameter (string). (default: "================================================================")
• asi — Controls the “asi” parameter (string). (default: "----Average spread inputs----")
• TicksToCount — The ticks to count whilst canculating the av spread (default: 5)
• MultiplierToDetectStopHunt — Controls the “MultiplierToDetectStopHunt” parameter (double). (default: 10)
• sep13 — Controls the “sep13” parameter (string). (default: "================================================================")
• tmm — Controls the “tmm” parameter (string). (default: "----Trade management module----")
• BE — Breakeven has to be enabled for JS and TS to work. (default: "Break even settings")
• BreakEven — Moves stop to entry after reaching this profit. (default: true)
• BreakEvenTargetPips — Moves stop to entry after reaching this profit. (default: 20)
• BreakEvenTargetProfit — Moves stop to entry after reaching this profit. (default: 3)
• PartCloseEnabled — Controls the “PartCloseEnabled” parameter (bool). (default: true)
• PartClosePercent — Percentage of the trade lots to close (default: 50)
• sep14 — Controls the “sep14” parameter (string). (default: "================================================================")
• JSL — Controls the “JSL” parameter (string). (default: "Jumping stop loss settings")
• JumpingStop — Controls the “JumpingStop” parameter (bool). (default: true)
• JumpingStopTargetPips — Controls the “JumpingStopTargetPips” parameter (int). (default: 25)
• AddBEP — Controls the “AddBEP” parameter (bool). (default: true)
• sep15 — Controls the “sep15” parameter (string). (default: "================================================================")
• cts — Controls the “cts” parameter (string). (default: "----Candlestick jumping stop----")
• UseCandlestickTrailingStop — Enables a trailing stop with this distance. (default: false)
• CstTimeFrame — Defaults to current chart (default: 0)
• CstTrailCandles — Defaults to previous candle (default: 1)
• TrailMustLockInProfit — Controls the “TrailMustLockInProfit” parameter (bool). (default: true)
• sep16 — Controls the “sep16” parameter (string). (default: "================================================================")
• TSL — Controls the “TSL” parameter (string). (default: "Trailing stop loss settings")
• TrailingStop — Enables a trailing stop with this distance. (default: false)
• TrailingStopTargetPips — Enables a trailing stop with this distance. (default: 20)
• se52 — Enhanced screen feedback display code provided by Paul Batchelor (lifesys). Thanks Paul; this is fantastic. (default: "================================================================")
• oad — Controls the “oad” parameter (string). (default: "----Odds and ends----")
• ChartRefreshDelaySeconds — Controls the “ChartRefreshDelaySeconds” parameter (int). (default: 3)
• DisplayGapSize — if using Comments (default: 30)
• DisplayAsText — replaces Comment() with OBJ_LABEL text (default: true)
• KeepTextOnTop — Disable the chart in foreground CrapTx setting so the candles do not obscure the text (default: true)
• DisplayX — Controls the “DisplayX” parameter (int). (default: 100)
• DisplayY — Controls the “DisplayY” parameter (int). (default: 0)
• fontSise — Controls the “fontSise” parameter (int). (default: 8)
• fontName — Controls the “fontName” parameter (string). (default: "Arial")
• colour — Controls the “colour” parameter (color). (default: Yellow)
💽 HOW TO INSTALL (MT4)
• Download: (.ex4)
• MetaTrader → File → Open Data Folder
• MQL4 → Experts → paste file → restart MT4
• Navigator (Ctrl+N): drag onto chart
• Enable: Allow live trading + DLL imports
• Click AutoTrading (►)

✅ RECOMMENDED BROKERS
🔹 Exness : https://one.exnesstrack.net/a/chmn9zk3nj
🔹 XM : https://clicks.pipaffiliates.com/c?c=446268&l=en&p=6
🔹 IC Markets : https://icmarkets.com/?camp=55065
🔹 RoboForex : https://my.roboforex.com/en/?a=suxs
🔹 SuperForex : https://superforex.com/?x=TWCS123
🔹 LQDFX : http://t.lqdfx.com/?t=8FC97B&dest=bonus
🔹 Tickmill : https://tickmill.link/4imp5S5
🔹 Pepperstone : https://trk.pepperstonepartners.com/aff_c?offer_id=367&aff_id=32140
🔹 Exclusive Deal : https://affs.click/cFrHo

✅ RECOMMENDED VPS
🔹 FXVM : https://fxvm.net/?aff=18727
🔹 Zomro : https://zomro.com/vds?from=399558

📞 CONTACT & SUPPORT
🔹 Website : https://doveforexmarkets.com
🔹 Telegram: https://t.me/forexchats
🔹 Email : info@doveforexmarkets.com
🔹 WhatsApp: wa.me/260960556804

⚠️ DISCLAIMER
Trading involves risk. Past performance does not guarantee future results.

Get unlimited downloads

Subscribe to access unlimited downloads of Forex Indicators, Forex Robots, Forex Trading Strategies, Forex Source Codes and much more premium tools...

Subscribe to download
License Option
Quality checked by Dove Forex Markets™
Full Documentation
Future updates
Author Support

Published:

27 Mar, 2026 04:35 PM

Version:

v2.1

Files Included:

Yes

Instructions Included:

Yes

Source Code Included:

Yes

Tags:

Doveforexmarkets's items

Similar items

We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies

More