Model: v1.0 (Draft) • Up to date: Oct 28, 2025 • Platform: MetaTrader 5
Creator: [Igor/Widiger] • Help: [https://www.mql5.com/en/users/deinschanz]
1) Overview
Vary Breakout Beast MT5 is a completely automated EA for breakouts from consolidation ranges, that includes complete filters (vary, volatility, information, RSI), adaptive time/vary guidelines, and strong threat/place administration (SL/TP, breakeven, trailing, partials). No Martingale, no grid.
⚠️ Threat Warning: Buying and selling leveraged merchandise carries vital threat. Previous efficiency is not a dependable indicator of future outcomes. All the time take a look at within the Technique Tester and on a demo account earlier than going dwell.
2) Fast Begin
-
Timeframe & Image: e.g., EURUSD M15.
-
Time window: Set RangeStartHour/Min → RangeEndHour/Min (dealer time).
-
Technique: Use typeStrategy = strategy_ausbruch (Breakout) by default.
-
Entry: Configure TypeBuffer = trading_candle_close , BufferPoints , CloseTF , and RequireFullBody .
-
Stops/Targets: Select sltype and tptype (factors/p.c/vary/issue).
-
Safety: Allow Dealer‑Safety, Information Filter, Problem/Threat limits as wanted.
-
Check & Deploy: Validate within the Technique Tester → begin small on dwell.
3) Inputs by Group
Tables record Identify, Default, Kind/Values, and a brief Description. Instances check with dealer time except said in any other case.
3.1 Basic
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| MagicNumber | 15745 | Quantity | Distinctive ID per chart/occasion. |
3.2 Technique Filter
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| typeStrategy | strategy_ausbruch | startegy_auto / strategy_ausbruch / strategy_retest | Computerized, Breakout, or Retest mode. |
| AutoStrategy_ATR_Threshold | 0.62 | Double | ATR‑ratio threshold for Computerized mode. |
| AutoStrategy_Pct_Threshold | 0.42 | Double | P.c threshold for Computerized mode. |
| RetestCounter | 1 | Integer | Allowed variety of retests (when Auto/Retest is enabled). |
| HysteresisPoints | 5 | Factors | Hysteresis buffer to keep away from uneven re‑triggers. |
| MinBodyPoints | 3 | Factors | Minimal candle physique dimension. |
Timeframe for vary calculation
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| TimeframeRangeCalc | PERIOD_M1 | ENUM_TIMEFRAMES | TF used to compute the inner vary. |
Place filter
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| PosSelected | all_trade | long_trade / short_trade / all_trade / automatic_trade | Directional lock or adaptive. |
Adaptive development filter
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| UseAutoTrendTF | false | Bool | Select TF mechanically? |
| TrendTF_Override | PERIOD_M15 | ENUM_TIMEFRAMES | Guide TF if auto is off. |
| SwingDepthOverride | 3 | Integer | Bars left/proper to substantiate swings (3 = basic). |
| LookbackOverride | 200 | Integer | Bars to scan for swing factors. |
3.3 Entry & Affirmation
Entry logic
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| TypeBuffer | trading_candle_close | trading_ohne_use / trading_mit_buffer / trading_candle_close | Enter with out buffer, with factors buffer, or on candle shut. |
| BufferPoints | 20 | Factors | Distance above/beneath vary degree. |
Candle‑shut affirmation
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| CloseTF | PERIOD_M5 | ENUM_TIMEFRAMES | TF of the affirmation candle. |
| RequireFullBody | true | Bool | Require a full physique shut. |
| TolerancePts | 5 | Factors | Tolerance (for borderline closes). |
3.4 Dealer Safety
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| UseBrokerProtection | broker_schutz_on | on/off | Provides delay/randomization round orders. |
| MinDelayMs | 50 | ms | Minimal delay. |
| MaxDelayMs | 300 | ms | Most delay. |
| SlTpRandomPips | 0.3 | Pips | Random deviation on SL/TP (anti‑looking). |
3.5 Prop/Problem (FTMO‑type)
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| ChallengeType | challenge_off | off/on | Allow problem safety. |
| MaxDailyLoss | −500.0 | Cash | Day by day loss restrict ($/€). |
| MaxTotalLoss | −1000.0 | Cash | Total loss restrict ($/€). |
| ProfitTarget | 1000.0 | Cash | Problem revenue goal ($/€). |
| StartBalance | 10000.0 | Cash | Preliminary capital. |
| MinTradeDays | 4 | Days | Minimal buying and selling days. |
Feedback/Logs
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| ComentType | comentar_all | off/chart/professional/each | Output on chart, Consultants tab, or each. |
3.6 Information Filter & Visualization
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| MinutesBeforeNews | 3 | Minutes | Pause X minutes earlier than information. |
| MinutesAfterNews | 3 | Minutes | Pause X minutes after information. |
| FilterImportance | NEWS_NONE | none/low/medium/excessive | Significance threshold. |
| ShowNewsLines | linien_on | on/off | Present vertical information traces. |
| NewsLineColor | clrRed | Shade | Line coloration. |
| NewsLineStyle | STYLE_DOT | Fashion | Strong/dotted/dashed. |
| NewsLineWidth | 2 | Pixels | Line width. |
| ShowNewsBlocks | rechteck_on | on/off | Present time blocks (rectangles). |
| BlockColor | clrLightSalmon | Shade | Block coloration. |
| BlockTransparency | 70 | 0–255 | Block transparency. |
3.7 Vary Filter (incl. Adaptive)
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| rangetype | range_in_off | off/factors/p.c | Validate vary by factors or p.c. |
| MinPoints | 500 | Factors | Minimal vary dimension (factors). |
| MinProcent | 0.10 | % | Minimal vary dimension in p.c. |
| MaxPoints | 1000 | Factors | Most vary dimension (factors). |
| MaxProcent | 0.50 | % | Most vary dimension in p.c. |
| UseAdaptive | false | Bool | Allow adaptive studying mode. |
| MinProcent_Base | 0.16 | % | Beginning worth for min‑vary. |
| MaxProcent_Base | 0.40 | % | Beginning worth for max‑vary. |
| MinProcent_Min/Max | 0.08 / 0.24 | % | Exhausting flooring/ceiling for min‑vary. |
| MaxProcent_Min/Max | 0.28 / 0.50 | % | Exhausting flooring/ceiling for max‑vary. |
| Step_MinProcent | 0.02 | % | Step dimension for min‑vary. |
| Step_MaxProcent | 0.04 | % | Step dimension for max‑vary. |
3.8 Volatility / RSI Filters
ATR volatility take a look at
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| typeVola | atr_vola_off | off/on | Implement minimal volatility by way of ATR. |
| InpATRPeriod | 14 | Interval | ATR interval. |
| InpATRThreshold | 1.3 | % | Minimal volatility in p.c. |
| InpLookback | 1 | Bars | Bars retrieved for ATR (1 suffices). |
| InpATRTF | PERIOD_D1 | ENUM_TIMEFRAMES | Timeframe used for ATR verify. |
RSI filter
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| UseRSIFilter | RSI_MODE_OFF | off/on | Allow RSI filter. |
| RSI_Period | 14 | Interval | RSI interval. |
| RSI_LowerLevel | 30.0 | Stage | Beneath: no shorts. |
| RSI_UpperLevel | 70.0 | Stage | Above: no longs. |
| RSI_TF | PERIOD_M5 | ENUM_TIMEFRAMES | TF for RSI. |
3.9 Threat & Place Sizing
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| volumetype | money_volume | procent_volume / money_volume / fixed_volume | Place sizing by % threat, cash, or fastened tons. |
| RiskProzent | 0.5 | % | Threat per commerce (p.c mode). |
| RiskMoney | 50 | Cash | Threat per commerce (cash mode). |
| Heaps | 0.01 | Heaps | Mounted lot dimension (fastened mode or when threat=0). |
Take Revenue
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| tptype | tp_mode_off | off/factors/issue/p.c | TP calculation mode. |
| TPpoints | 600 | Factors | Mounted TP in factors. |
| TPFactor | 9 | Issue | TP by issue (R:R‑like). |
| TPProcent | 1.5 | % | TP in p.c. |
Cease Loss
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| sltype | sl_range | off/factors/p.c/vary | SL calculation; vary = past the vary. |
| SLpoints | 500 | Factors | Mounted SL in factors. |
| SLProcent | 50 | % | SL in p.c. |
Weekly/Month-to-month Threat Supervisor
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| typeRiskOnOff | RISK_WEEK_MONTH_OFF | on/off | Allow weekly/month-to-month threat cap. |
| UseWeek | RISK_WEEK_MODE | week/month | Reference interval. |
| UsePercent | RISK_MONEY_MODE | p.c/cash | Unit for limits. |
| WeeklyRiskPercent | 1.5 | % | Weekly cap in p.c. |
| MonthlyRiskPercent | 4.5 | % | Month-to-month cap in p.c. |
| WeeklyRiskMoney | 150.0 | Cash | Weekly cap ($/€). |
| MonthlyRiskMoney | 450.0 | Cash | Month-to-month cap ($/€). |
Adaptive Vary & Time (fairness‑primarily based)
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| LossStreakTrigger | 2 | Trades | Tighten after X consecutive losses. |
| DD_TriggerPct | 2.0 | % | Tighten after X% drawdown. |
| CooldownDays | 2 | Days | Minimal interval between changes. |
| WinStreakRelief | 2 | Trades | Loosen after X consecutive wins. |
| NewHighReliefPct | 1.0 | % | Loosen after new fairness excessive ≥ X%. |
| PauseLossOnOff | false | Bool | Pause buying and selling after a shedding day? |
| PauseLossInDays | 1 | Days | Pause size after loss day. |
| PauseOnOff | false | Bool | Pause after a profitable day? |
| PauseInDays | 1 | Days | Pause size after win day. |
| InpRM50_Enable | true | Bool | Promote 50% if nonetheless in pink after N candles. |
| InpRM50_AfterBars | 6 | Candles | Variety of closed candles earlier than verify. |
| InpRM50_MinLossPct | 0.20 | % | Minimal loss (% of steadiness) to set off. |
| typeMoneyManagement | MANAGEMENT_MODE_OFF | off/percent_close/money_close | Pressure shut at threshold. |
| ManagementProcent | 3 | % | Shut when revenue reaches +X%. |
| ManagementMoney | 300 | Cash | Shut when revenue reaches +X $/€. |
Shut‑positions & Day by day‑ranges guards
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| TypeCloseFilter | close_pos_filter_off | off/on | Guard towards opposed prior‑day ranges. |
| InpTouchTolerancePoints | 20 | Factors | Contact tolerance to yesterday’s degree. |
| InpMinDistanceToRangePoints | 200 | Factors | Min. distance Vary↔Y‑Excessive/Low. |
| InpMaxDailyLookbackDays | 7 | Days | Look again as much as N calendar days. |
| InpMaxDailyLevelDistancePoints | 600 | Factors | Max distance to present value (0=off). |
| InpPickClosestDailyLevel | true | Bool | Decide nearest degree inside final N days. |
| InpHighMustBeAboveEntry | true | Bool | BUY: Excessive ≥ Entry (with tolerance). |
| InpHighMustBeAboveRangeHigh | false | Bool | BUY: Excessive ≥ RangeHigh. |
| InpLowMustBeBelowEntry | true | Bool | SELL: Low ≤ Entry. |
| InpLowMustBeBelowRangeLow | false | Bool | SELL: Low ≤ RangeLow. |
| InpAheadTolerancePoints | 10 | Factors | Tolerance for the above guidelines. |
| InpSkipIfRangeNearYHigh | true | Bool | Do not shut longs if RangeHigh ≈ Y‑Excessive. |
| InpSkipIfRangeNearYLow | true | Bool | Do not shut shorts if RangeLow ≈ Y‑Low. |
| InpRequireRangeReady | true | Bool | Function solely when RangeHigh/Low are set. |
| InpRequireCross | true | Bool | Shut provided that the extent was actually crossed. |
3.10 Time Management (GMT/Offsets & Buying and selling Hours)
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| UseGMTTimes | false | Bool | Interpret vary/buying and selling instances as GMT. |
| AutoGMTOffset | false | Bool | Auto‑detect server↔GMT offset. |
| ManualGMTOffsetWinterH | 2 | Hours | Guide winter offset. |
| ManualGMTOffsetSummerH | 3 | Hours | Guide summer season offset. |
| ManualIsSummerTime | false | Bool | Toggle summer season/winter (if Auto is off). |
| ResetGmtDeltasOnInit | false | Bool | Reset GMT deltas on init. |
| TesterUseManualOffset | true | Bool | Vital: Pressure guide offset in tester. |
| TesterGMTOffsetWinterH | 2 | Hours | Tester winter offset. |
| TesterGMTOffsetSummerH | 3 | Hours | Tester summer season offset. |
Home windows & buying and selling type
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| RangeStartHour/Min | 3 / 0 | h/min | Begin of vary measurement. |
| RangeEndHour/Min | 6 / 0 | h/min | Finish of vary measurement. |
| TradingArt | day_trading | day_trading/swing_trading | Buying and selling type. |
| LimitOpenPosSym | 1 | Depend | Max open positions (primarily for swing). |
| TradingEndHour/Min | 18 / 0 | h/min | Finish of buying and selling. |
Adaptive instances
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| UseAdaptiveTimes | false | Bool | Adapt the time window primarily based on fairness. |
| InpAutoAdaptiveTimesOnStress | true | Bool | Tighten throughout stress (DD). |
| InpAutoAdaptiveResetOnRelief | true | Bool | Loosen on aid. |
| RangeStartHour/Min_Base | 3 / 0 | h/min | Base begin time. |
| RangeEndHour/Min_Base | 6 / 0 | h/min | Base finish time. |
| TradingEndHour/Min_Base | 18 / 0 | h/min | Base buying and selling finish. |
| Step_TimeMinutes | 30 | Minutes | Adjustment step. |
| RangeStart_Min/MaxHour | 1 / 3 | Hours | Bounds for begin time. |
| RangeEnd_Min/MaxHour | 4 / 7 | Hours | Bounds for finish time. |
| TradingEnd_Min/MaxHour | 16 / 20 | Hours | Bounds for buying and selling finish. |
3.11 Breakeven & Trailing
Breakeven
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| brtype | br_mode_off | off/factors/issue/p.c | Breakeven mode. |
| BRpoints | 100 | Factors | Revenue distance to maneuver to BE. |
| BRFactor | 2 | Issue | BE at X× threat distance. |
| BRProcent | 50 | % | BE at X% revenue. |
| BRBuffer | 10 | Factors | Buffer for the BE cease. |
Trailing cease
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| trtype | tr_mode_off | off/factors/issue/p.c/clever/candle | Trailing mode. |
| TRstep | 100 | Factors | Step dimension (0 = steady). |
| TRpoints | 100 | Factors | Path distance in factors. |
| TRFactor | 2 | Issue | Path by issue. |
| TRProcent | 50 | % | Path by p.c. |
| trailing_value | seventyfive | 25/50/75 | Assured revenue lock degree. |
Clever trailing
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| typeART | tr_in_range | in_points/range_height | Reference: factors or vary top. |
| TrSpeed | 50 | Factors/min | Cease transfer pace. |
| TimeframeTrailing | PERIOD_M1 | ENUM_TIMEFRAMES | Analysis TF. |
Candle‑break trailing
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| LookbackBars | 30 | Bars | Search window for final pink/inexperienced candle. |
| BreakBufferPts | 2 | Factors | Buffer above/beneath excessive/low. |
| SLBufferPts | 2 | Factors | Further buffer for SL. |
| MinBodyPts | 0 | Factors | Doji filter (0 = ignore). |
| ConfirmOnClose | true | Bool | Affirm on candle shut solely. |
| EqualEpsPts | 0.1 | Factors | Epsilon to keep away from rounding noise. |
Anti‑flat filters
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| UseProfitGate | true | Bool | Path solely with ample revenue. |
| MinProfitPts | 20.0 | Factors | Minimal revenue in factors. |
| MinProfitPercBalance | 0.20 | % steadiness | Minimal revenue as % of steadiness. |
| UseATRFilter | false | Bool | Path provided that ATR is excessive sufficient. |
| ATRPeriod | 14 | Interval | Interval for ATR gate. |
| ATRMinPts | 10.0 | Factors | Minimal ATR in factors. |
| UseADXFilter | false | Bool | Path provided that ADX ≥ threshold. |
| ADXPeriod | 14 | Interval | ADX interval. |
| ADXMin | 20.0 | Worth | Minimal ADX. |
| ConfirmBodyMinPts | 0 | Factors | Minimal physique of affirmation candle. |
Partial earnings
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| parttype | part_mode_off | off/factors/issue/p.c | Partial‑shut mode (in revenue). |
| PARTpoints | 100 | Factors | Revenue factors to set off partial shut. |
| PARTFactor | 2 | Issue | Revenue issue to set off partial shut. |
| PARTProcent | 50 | % | Revenue p.c to set off partial shut. |
| partialtype | procent_50 | 25/50/75/90 | Portion to shut. |
3.12 Buying and selling Calendar & UI
Month-to-month filter (permit buying and selling?)
Jan–Dec booleans (all true by default) — allow/disable months individually.
Weekday filter
Mon–Fri: true; Sat/Solar: false by default.
Extra settings
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| RangeRefrsh | 3 | Days | Re‑draw vary objects each X days. |
| RangeColor | clrDarkOrange | Shade | Vary background coloration. |
| ShowRangeMarkers | false | Bool | Present visible vary markers. |
Dashboard
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| DashModus | dash_off | off/on | Show information panel. |
| VersionNameColor | clrDodgerBlue | Shade | Title coloration (title/model). |
| dashboardFont | Arial | String | Font household. |
| DashFontSize | 10 | px | Font dimension. |
| DashboardYOffset | 25 | px | Transfer panel down. |
Adaptive Panel (HUD)
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| ShowHUD | false | Bool | Present further HUD. |
| TimeframeShowHud | PERIOD_M1 | ENUM_TIMEFRAMES | Replace TF. |
| Xoffset | 15 | px | Transfer HUD to the fitting. |
| VerboseLogs | false | Bool | Verbose logs for adaptive logic. |
Statistics Panel
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| ShowPanel | true | Bool | Present statistics panel. |
| HistoryDays | 3650 | Days | Lookback interval. |
| FilterSymbol | false | Bool | Restrict to present image. |
| UiScale | 0.6 | Issue | Panel scaling (1.0 = default). |
| PanelCorner | CORNER_LEFT_UPPER | Nook | Panel alignment. |
| PanelOffsetX | 500 | px | Horizontal offset. |
Chart design
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| InpTheme | THEME_DARK | off/darkish/mild | Chart theme. |
| InpShowGrid | false | Bool | Present grid. |
| InpShowOHLC | false | Bool | Present OHLC in nook. |
| InpUseCandles | true | Bool | Pressure candlestick chart. |
Notifications
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| InpSendPush | false | Bool | Ship push notifications. |
| InpSendEmail | false | Bool | Ship emails. |
| InpEAName | “Vary Breakout Beast MT5” | String | Identify within the topic. |
| InpShowServerTime | true | Bool | Embrace server time in textual content. |
| InpShowLocalTime | true | Bool | Embrace native time in textual content. |
| InpLocalTZLabel | “Europe/Berlin” | String | Label for native time zone. |
Debug
| Parameter | Default | Kind/Values | Description |
|---|---|---|---|
| DebugLevel | debug_level_off | off/fundamental/particulars/full | Verbosity of debug output. |
4) Sensible Notes
-
Vary high quality: If many fakeouts, improve MinPoints/MinProcent , elevate BufferPoints , and contemplate RequireFullBody=true with the next‑TF CloseTF .
-
Volatility: If too little motion, set typeVola=on and lift InpATRThreshold . If over‑filtered, scale back it.
-
Information: Utilizing NEWS_HIGH blocks numerous time — contemplate Medium/Low except you particularly have to keep away from all spikes.
-
Threat caps: For prop guidelines, change ChallengeType=on and allow the weekly/month-to-month supervisor.
-
Trailing/BE: Allow solely after the core logic is secure; in any other case chances are you’ll reduce robust strikes too early.
-
GMT/Tester: In Technique Tester, hold TesterUseManualOffset=true and set offsets appropriately.
5) Troubleshooting
| Symptom | Attainable Trigger | Repair |
|---|---|---|
| No trades | Information pause, vary outdoors limits, volatility off | Test Information/Vary/ATR settings. |
| Many false breakouts | Buffer/affirmation too unfastened | Enhance BufferPoints , use RequireFullBody , modify CloseTF . |
| SL hit too usually | SL too tight / noisy market | Revisit SL mode, contemplate ATR/ADX gates for trailing. |
| Pending orders expire | Expiry too quick (if used) | Enhance expiry or use market entries. |
6) Glossary
ATR (Common True Vary), R**:R** (Threat:Reward), ADX, Swing Excessive/Low, Hysteresis, Doji, GMT Offset.
