0
1
Universal Breakout System 7.66
COMPLETE STRATEGY AND INPUT GUIDE
This article documents the Universal Breakout System Expert Advisor for MetaTrader 5 and all 196 functional input parameters in the Market build. Input identifiers are written exactly as they appear in the EA. The guide is informational and does not guarantee trading results.
PORTUGUÊS
Este artigo documenta os três modelos de entrada, os controles de risco e os 196 parâmetros funcionais do Universal Breakout System para MetaTrader 5. Os identificadores dos parâmetros aparecem exatamente como no robô. O EA não garante lucros; os resultados dependem das configurações, do símbolo, das condições da corretora e dos dados de mercado.
Universal Breakout System 7.66
PURPOSE AND SCOPE
This post is the detailed user guide for the Universal Breakout System Expert Advisor for MetaTrader 5. It documents the three entry models, risk and position management, chart panel, and all 196 functional inputs in the Market build. The parameter identifiers are written exactly as they appear in the EA.
STRATEGY OVERVIEW
Universal Breakout System can trade three configurable breakout models:
1. Support and resistance breakout: finds swing highs and lows, then places breakout orders at configurable distances.
2. Volatility entry: compares recent price movement with an ATR-based threshold.
3. Timed range breakout: measures a selected session range and trades a confirmed move beyond its high or low.
The EA can allow buys, sells, or both. Entry settings include stop orders and a retest-based stop-limit mode. Position management includes fixed stop loss and take profit, trailing stop, trailing take profit, break-even, swing-based trailing, optional grid recovery, equity limits, configurable lot sizing, trading schedules, spread checks, calendar filters, and a confirmation-candle exit filter.
The gray and white chart panel displays the EA state, strategy and direction, symbol and timeframe, lot size and magic number, balance, equity, floating and closed P/L, open positions, pending orders, and the next news event when available. The optional preset loader can run multiple named .set strategies from one chart, each with its own magic number and settings. Optional chart-level overrides can apply the same lot, news, schedule, or equity-protection settings to all loaded strategies.
Attach the EA to a chart and select the strategy and risk settings that match your account and symbol. Check the broker's symbol specifications, point size, trading hours, execution mode, and calendar availability before use. Grid recovery is optional and disabled by default. The EA does not guarantee profits; results depend on settings, symbol, broker conditions, and market data.
INPUT PARAMETERS
The 196 exposed inputs below are connected to trading, risk, panel, preset, tester, or diagnostic code. Some settings apply only to their selected strategy or enabled module. Numeric timeframe fields use MetaTrader 5 timeframe values; 0 means the chart timeframe where specified. Price distances use the EA's symbol-adjusted point scale unless a setting explicitly says pips, hours, minutes, percent, or account currency.
Panel and preset loader
DumpSetConfig_ — writes the resolved strategy settings to a file for review.
ShowInfoPanel — shows or hides the chart information panel.
UpdateInfoTesting — refreshes panel data during Strategy Tester runs.
InfoPanelSizeAdjust — scales the panel; the panel enforces a minimum readable scale.
SetFontSize — sets the panel font size; 0 uses the panel's automatic base size.
UseAutoLoader — loads all .set files from the configured folder as separate strategies.
InfoPanelMaxRows — maximum number of data rows shown in the panel; the layout displays up to 11.
Sets_Folder — folder for .set files, relative to the terminal's MQL5/Files area.
overrideAutoLoadLotsSettings — uses the chart's lot and risk settings for all loaded strategies.
overrideNewsFilter — applies the chart's news-filter settings to all loaded strategies.
overrideTimeSettings — applies the chart's trading-hours settings to all loaded strategies.
overrideProp — applies the chart's equity and daily-limit settings to all loaded strategies.
ForcePendingMax — portfolio-wide cap for pending orders when the auto-loader is active; 0 disables this cap.
Optimization and spread
EP — minimum expected-payoff threshold used by the custom optimization criterion; 0 disables this threshold.
RF — minimum recovery-factor threshold for the custom optimization criterion; 0 disables this threshold.
TR — minimum trade-count threshold for the custom optimization criterion; 0 disables this threshold.
MTR — maximum trade-count threshold for the custom optimization criterion; 0 disables this threshold.
SpreadFilter — enables the spread filter for new entries.
MaxSpread — maximum spread allowed by the filter, in the EA's symbol-scaled point units.
DistForSpreadFilter — distance threshold used by the spread filter when checking nearby pending orders.
BacktestSpeed — tester-only entry throttle: 1 allows normal cadence, 2 limits entry passes to one per second, 3 to one per five seconds, and values above 3 to one per fifteen seconds.
General execution
EA_MagicNumber — identifier used to distinguish and manage this EA's trades.
EA_Comment — text sent as the order comment.
ForceSymbol — optional symbol override.
OnlyLoaderForceSymbol — when true, applies ForceSymbol only to strategies loaded from .set files; set false to apply it to the chart strategy too.
setSL_TP_After_Entry — sets stop loss and take profit after an entry is filled instead of attaching them to the initial order.
Virtual_expiration — manages support/resistance pending-order expiration in the EA; when disabled, broker-side expiration is used where supported.
useVirtualStops — stop mode: 0 disables virtual protection; 1 uses an EA-managed stop with a broker safety stop; 2 stores and manages a separate virtual stop.
VirtualSL_Safety_Hardstop_dist — distance, in symbol-adjusted points, of the broker-side safety stop beyond the virtual stop.
SetVSL_to_hardSL_sec_delay — delay, in seconds, before applying the broker-side safety stop after entry.
Run_Strategy — selects the entry model: 1 support/resistance breakout, 2 volatility entry, 3 timed range breakout.
AllowBuyTrades — permits buy trades.
AllowSellTrades — permits sell trades.
PrintLogs — enables additional diagnostic messages in the terminal log.
Volatility and normalization
ATRDefault — reference ATR for dynamic point scaling; 0 disables this ATR reference.
ATR_Period — period used to calculate the normalization ATR.
ATR_Timeframe — timeframe used for the normalization ATR.
DefaultValue — alternate reference value used by the dynamic normalization calculation when ATRDefault is not set.
VolTimeframe — timeframe used to measure price movement for the volatility-entry model; 0 uses the chart timeframe.
VolCandles — number of candles used for the volatility movement measurement.
minSize — minimum movement required for a volatility entry.
AtrPeriod — ATR period used as the volatility threshold baseline.
VolAtrTimeframe — timeframe for the volatility threshold ATR; 0 uses the chart timeframe.
DevFactor — ATR multiple required for the measured move to qualify as a volatility signal.
VolMaxTrades — maximum number of volatility-model trades allowed per direction.
Support and resistance breakout
EntryModel — order style: 1 uses stop entries; 2 uses the retest-based stop-limit entry model.
RetestTrigger — retracement percentage used to trigger the retest-based entry model.
LimitOrderExpiration — lifetime, in hours, for the retest limit order; 0 leaves this expiration disabled.
ST1_Timeframe — timeframe used to find support and resistance pivots; 0 uses the chart timeframe.
Entry_Timing — timeframe cadence for processing support/resistance entries; 0 uses the chart timeframe.
ST1_HL_strength_L — candles required to the left of a candidate swing high or low.
ST1_HL_strength_R — candles required to the right of a candidate swing high or low.
ST1_countback — maximum number of bars searched for a qualifying pivot.
ST1_MinDist_to_HL — minimum distance from price to a pivot, in symbol-scaled point units.
ST1_MinDist_to_HL_percentage — optional minimum pivot distance as a percentage of price; when positive, it replaces the absolute distance.
ST1_UpDiff — offset above a swing high for buy-stop placement.
ST1_DownDiff — offset below a swing low for sell-stop placement.
ST1_MaxPendingOrders — maximum support/resistance pending orders per direction.
MaxTrades — maximum open trades per direction for this entry model.
MinDist_orders — minimum spacing used to avoid placing orders too close to existing orders.
ST1_Expiration_hours — pending-order lifetime in hours for the support/resistance model.
Timed range breakout
RNG_Timeframe — timeframe used to measure the range; 0 uses the chart timeframe.
RNG_MinBars — minimum bars required in the range.
RNG_MaxBars — maximum bars searched for the range.
RNG_ATR_Period — ATR period used to check the range height.
RNG_ATR_Timeframe — timeframe for the range-height ATR; 0 uses the chart timeframe.
RNG_ATR_Mult — maximum range height as a multiple of ATR.
RNG_MaxHeightPips — optional absolute range-height cap in pips; 0 disables this cap.
RNG_MeasureMode — 0 measures candle bodies; 1 measures candle wicks.
RNG_BreakBuffer — breakout buffer as an ATR multiple.
RNG_BreakConfirm — 0 accepts a wick break; 1 requires a candle close beyond the range.
RNG_TimeZone — range clock: 1 broker time, 2 New York time, 3 London time.
RNG_CheckHour — hour at which the range measurement is checked in the selected time zone.
RNG_CheckMinute — minute at which the range measurement is checked.
RNG_EntryMode — 0 enters at market; 1 places pending breakout orders.
RNG_UpDiff — additional buy-entry offset beyond the range high.
RNG_DownDiff — additional sell-entry offset beyond the range low.
RNG_Expiration_min — lifetime, in minutes, for range breakout pending orders.
RNG_MaxTrades — maximum range-model trades allowed per direction.
RNG_OneSideOnly — after one side trades, blocks a trade in the opposite direction for that range.
RNG_CloseHour — hour for the optional timed close; -1 disables it.
RNG_CloseMinute — minute for the optional timed close.
RNG_SL_Mode — 1 uses Exit_stop as the standard stop distance; 2 places the stop beyond the opposite range boundary.
RNG_SL_Buffer — buffer, in range pip units, beyond the opposite range boundary in mode 2.
RNG_TP_RMultiple — take-profit distance as a multiple of initial risk; 0 or less falls back to Exit_limit.
RNG_Debug — writes range-model diagnostic messages to the terminal log.
RNG_ShowBoxes — draws measured range boxes on the chart.
RNG_HistoryBars — number of historical bars considered for range drawings.
RNG_ColActive — color of the active range box.
RNG_ColBull — color used for bullish range drawings.
RNG_ColBear — color used for bearish range drawings.
Exit management
Exit_Timing — timeframe used for exit-management cadence; 0 uses the chart timeframe.
UseEveryTick — updates exit management on every tick when true; otherwise uses the selected timeframe cadence.
Exit_stop — standard initial stop-loss distance in symbol-scaled point units.
Exit_limit — standard initial take-profit distance in symbol-scaled point units.
Exit_TrailSL_size — trailing stop distance behind price.
Exit_TrailSL_Start — profit distance required before the standard trailing stop starts.
Exit_TrailSL_Stop — furthest profit stage considered by the standard trailing stop, in symbol-adjusted points.
Exit_TrailSL_step — spacing/guard, in symbol-adjusted points, used when advancing the standard trailing stop.
Exit_TrailTP_size — distance, in symbol-adjusted points, used when tightening take profit after its trigger.
Exit_TrailTP_Start — profit distance, in symbol-adjusted points, that activates trailing take profit.
Exit_BE_start — profit threshold, in symbol-adjusted points, that activates break-even protection; 0 disables this rule.
Exit_BE_extra_pips — offset beyond the entry price applied by the break-even rule.
Exit_HL_UseBE — allows the swing-high/low trailing stop to include break-even protection.
Exit_HL_trailingSL_timeframe — timeframe for swing-based stop updates; 0 uses the chart timeframe.
Exit_HL_countback — maximum bars searched for a swing point.
Exit_HL_trailingSL_candles_LEFT — candles required to the left of a swing point.
Exit_HL_trailingSL_candles_RIGHT — candles required to the right of a swing point.
Exit_HL_TrailingSL_MinDist — minimum distance, in symbol-adjusted points, for the swing-based trailing stop.
Exit_HL_Minimum_Dist_For_Change — minimum change, in symbol-adjusted points, required before modifying the stop.
Exit_HL_trailingSL_extra_distance — extra offset, in symbol-adjusted points, from the detected swing point.
Exit_TrailSL_after_X_Minutes — trade age in minutes that activates the time-based recovery trailing stop; 0 disables it.
Exit_TrailSL_after_X_Minutes_size — distance, in symbol-adjusted points, used by the time-based recovery trailing stop.
Exit_MagicTrail_Mode — 0 disables this trailing mode; 1 uses step trailing; 2 locks at break-even after its trigger.
Exit_MagicTrail_start — profit threshold, in symbol-adjusted points, that starts this trailing mode.
Exit_MagicTrail_delay — minimum delay, in minutes, between updates for this trailing mode.
Exit_MagicTrail_size — step or lock distance, in symbol-adjusted points, used by this trailing mode.
Exit_MagicTrail_BE_extra_pips — extra distance beyond break-even for the magic trailing stop.
Exit_MagicTrail_Adjust_after_X_Minutes — trade age in minutes after which the trailing threshold can be adjusted; 0 disables the adjustment.
Exit_MagicTrail_Adjust_after_X_Minutes_start — replacement start threshold used by the time-based adjustment.
Grid recovery
EnableGrid — enables the optional grid recovery module; disabled by default.
GridStart — adverse distance, in symbol-adjusted points, from the initial position before the first grid layer.
GridStep — spacing, in symbol-adjusted points, between additional grid layers.
GridTiming — timeframe used to limit grid checks to one pass per bar; 0 uses the chart timeframe.
GridTakeProfitPips — basket target distance in pips.
GridTakeProfitUSD — basket profit target in account currency when the value is at least 1; values below 1 are treated as a balance fraction.
GridLossUSD — basket loss limit in account currency when the value is at least 1; values below 1 are treated as a balance fraction, and 0 disables this limit.
StopTradingAfterGridLoss — stops new trading after the grid loss limit is reached.
GridMultiplier — lot multiplier applied as grid layers are added.
Equity and daily limits
CloseAtMinEquity — closes this EA's trades and halts when account equity reaches this minimum; 0 disables the limit.
CloseAtMaxEquity — closes this EA's trades and halts when account equity reaches this maximum; 0 disables the limit.
PropFirmMaxDailyDD — live-only daily equity drawdown limit in account currency; 0 disables it and the rule is not applied in the Strategy Tester.
RandomizationValue — adds a deterministic pseudo-random price offset to submitted order levels; 0 disables it.
Position sizing
ManualBalance — optional balance reference for position sizing; 0 uses the selected account balance/equity.
LotsAdjustMinChangePercent — minimum percentage change before a recalculated lot size is applied.
AdjustLotsizeToVariableValues — adjusts calculated volume for the EA's dynamic point/volatility scaling.
Risk — lot-sizing mode selector: 999 uses percentage risk; 9999 uses balance-step lots; 5555 uses fixed cash risk; 123 uses the strategy-risk formula; other values use StartLots.
StartLots — base/fallback lot size.
Manual_RiskPerTrade — percentage of the sizing balance risked per trade in Risk mode 999.
MaxRiskInDollar_input — fixed cash risk per trade in Risk mode 5555.
LotPerBalance_step — balance increment used by Risk mode 9999 to add 0.01 lot.
MaxRiskPerStrategy_Value — risk value used by Risk mode 123.
HistoricalMaxDD — historical drawdown input used by the Risk mode 123 calculation.
MaxLots — upper cap for calculated trade volume.
UseEquity — uses account equity rather than balance as the sizing base.
OnlyUp — for balance-based risk modes, prevents the stored sizing base from decreasing after a drawdown.
ResetHighestBalance — resets the stored high-water sizing balance.
CheckMargin — checks available margin before submitting an order.
Broker time and news
Broker_GMT_OFFSET_Summer — broker GMT offset in hours during summer time.
Broker_GMT_OFFSET_Winter — broker GMT offset in hours during winter time.
AutoGMT — estimates the live broker GMT offset automatically; tester time uses historical offset logic.
UseMQL5Calendar — uses the native MQL5 economic calendar when enabled; otherwise uses the EA's internal event data.
MQL5_CalendarDays — number of upcoming calendar days requested.
EnableNFP_Filter — enables the Non-Farm Payroll event filter.
NFP_CloseOpenTrades — closes this EA's open trades around the NFP event when enabled.
NFP_ClosePendingOrders — cancels this EA's pending orders around the NFP event when enabled.
NFP_MinutesBefore — minutes before NFP when the filter begins.
NFP_MinutesAfter — minutes after NFP when the filter ends.
EnableIR_Filter — enables the interest-rate decision event filter.
IR_CloseOpenTrades — closes this EA's open trades around the interest-rate event when enabled.
IR_ClosePendingOrders — cancels this EA's pending orders around the interest-rate event when enabled.
IR_MinutesBefore — minutes before the interest-rate event when the filter begins.
IR_MinutesAfter — minutes after the interest-rate event when the filter ends.
EnableCPI_Filter — enables the US Consumer Price Index event filter.
CPI_CloseOpenTrades — closes this EA's open trades around the CPI event when enabled.
CPI_ClosePendingOrders — cancels the pending orders around the CPI event when enabled.
CPI_MinutesBefore — minutes before CPI when the filter begins.
CPI_MinutesAfter — minutes after CPI when the filter ends.
Confirmation-candle exit filter
confirmationCandleTimeframeA — timeframe checked by confirmation slot A.
UseConfirmationCandleA — enables exit checks for slot A.
confirmationCandleTimeframeB — timeframe checked by confirmation slot B.
UseConfirmationCandleB — enables exit checks for slot B.
confirmationCandleTimeframeC — timeframe checked by confirmation slot C.
UseConfirmationCandleC — enables exit checks for slot C.
confirmationCandleTimeframeD — timeframe checked by confirmation slot D.
UseConfirmationCandleD — enables exit checks for slot D.
confirmationCandleTimeframeE — timeframe checked by confirmation slot E.
UseConfirmationCandleE — enables exit checks for slot E.
This filter manages open trades: a bearish closed candle can close a buy when it closes below the entry price; a bullish closed candle can close a sell when it closes above the entry price.
Trading schedule
UseTradingTimeZones — enables the weekday trading schedule.
KillPending — cancels this EA's pending orders outside the allowed schedule.
KillOpen — closes this EA's open trades outside the allowed schedule.
Time_Source — trading-schedule clock: 0 GMT, 1 local computer time, 2 broker/server time. This numbering is separate from RNG_TimeZone.
MondayStart — Monday start time in HH:MM.
MondayEnd — Monday end time in HH:MM.
TuesdayStart — Tuesday start time in HH:MM.
TuesdayEnd — Tuesday end time in HH:MM.
WednesdayStart — Wednesday start time in HH:MM.
WednesdayEnd — Wednesday end time in HH:MM.
ThursdayStart — Thursday start time in HH:MM.
ThursdayEnd — Thursday end time in HH:MM.
FridayStart — Friday start time in HH:MM.
FridayEnd — Friday end time in HH:MM.
SaturdayStart — Saturday start time in HH:MM.
SaturdayEnd — Saturday end time in HH:MM.
SundayStart — Sunday start time in HH:MM.
SundayEnd — Sunday end time in HH:MM.


