X Prime EA MT5 Settings – Complete Inputs Guide

Updated 30 Nov 2026
X Prime EA MT5 v1.32 with SetFiles (Unlimited)The EA in this guideX Prime EA MT5 v1.32 with SetFiles (Unlimited)$69 · Get it →

Introduction to X Prime EA MT5

X Prime EA is an automated trading Expert Advisor (EA) designed with a structured trading framework that combines adaptive execution, directional trading controls, zone-based activity management, and advanced risk management.

X Prime EA MT5 Settings

The EA provides multiple configuration options to help traders customize trading behavior, including long and short position management, spread protection, structure-based trailing, break-even adjustments, and position sizing based on drawdown budgets.

X Prime EA MT5 also incorporates manual zone switches, account protection mechanisms, and an optional economic news filter. These features allow traders to adjust trading activity, manage exposure, and customize execution conditions according to their trading preferences.

X Prime EA MT5 Settings PanelX Prime EA Settings Panel

Core Settings

🔹 InpAdaptToPrice = true – Enables price-adaptive functionality, allowing the EA to adjust its internal trading calculations according to changing market price conditions.

🔹 InpAdaptVolumeInverse = true – Enables inverse volume adaptation, allowing the EA to apply volume adjustments based on its internal adaptive sizing logic.

Visual Settings (OFF = Faster Backtest)

🔹 InpVisuals = true – Enables the EA's visual features, allowing traders to display additional trading information and graphical elements during operation.

🔹 InpDarkChart = true – Enables the dark chart appearance, providing a darker visual environment for monitoring trading activity.

🔹 InpChartRestore = true – Enables chart restoration functionality, allowing the EA to restore chart settings or appearance according to its internal implementation.

Direction & Activity Settings

🔹 InpTradeLong = true – Enables long trading operations, allowing the EA to open Buy positions when its trading conditions generate valid entry signals.

🔹 InpTradeShort = true – Enables short trading operations, allowing the EA to open Sell positions when its trading conditions generate valid entry signals.

🔹 InpActivity = ACT_FULL – Selects the EA's activity mode, with ACT_FULL representing the full-activity configuration; available alternative modes depend on the EA's internal implementation.

🔹 InpSpreadCeiling = 300.0 – Sets the maximum spread threshold to 300.0, providing a spread control limit for evaluating whether market execution conditions are acceptable.

🔹 InpDiagnostics = false – Disables diagnostic functionality by default, preventing additional diagnostic information from being generated during normal operation.

Exit Behaviour Settings

🔹 InpStructureTrail = true – Enables structure-based trailing functionality, allowing the EA to manage trade exits using its internal market structure logic.

🔹 InpConfirmExit = CONFIRM_TWO – Selects the two-confirmation exit mode, requiring the EA's configured confirmation conditions before executing an exit decision.

🔹 InpDeferStops = false – Disables deferred stop placement or adjustment, allowing stop-related operations to follow the EA's standard execution process.

🔹 InpSoftExpiry = true – Enables soft-expiry functionality, providing an additional mechanism for managing the expiration or validity of trading conditions and orders.

🔹 InpWeekendCloseHour = 25 – Sets the weekend closing-hour parameter to 25, defining the configured time threshold used by the EA's weekend position-management logic.

🔹 InpRolloverPauseMin = 5 – Sets the rollover trading pause to 5 minutes, allowing the EA to account for the broker's daily rollover period when managing trading activity.

Offsets (Prop-Firm Tuning)

These parameters provide adjustable execution offsets that may help customize trading levels and execution behavior for different broker or proprietary trading account environments.

🔹 InpShiftEntry = 0.0 – Sets the entry price adjustment to 0.0, meaning no additional entry offset is configured by default.

🔹 InpShiftStop = 0.0 – Sets the stop-loss adjustment to 0.0, keeping the original stop-loss calculation without an additional configured offset.

🔹 InpShiftTarget = 0.0 – Sets the take-profit adjustment to 0.0, meaning no additional target price adjustment is applied by default.

🔹 InpShiftTrailStop = 0.0 – Sets the trailing-stop adjustment to 0.0, leaving the standard trailing-stop calculation unchanged.

🔹 InpShiftTrailTarget = 0.0 – Sets the trailing-target adjustment to 0.0, meaning no additional trailing-target offset is configured.

🔹 InpShiftBreakEven = 0.0 – Sets the break-even adjustment to 0.0, keeping the default break-even calculation without an additional price shift.

🔹 InpJitter = 0.0 – Sets the execution jitter parameter to 0.0, disabling any additional configured execution variation.

Position Sizing Settings

This section controls how X Prime EA MT5 calculates trading volume, allocates risk, and manages account drawdown limits.

🔹 InpSizingMode = SIZE_DD_BUDGET – Selects the drawdown-budget-based position sizing mode, allowing the EA to determine position sizes according to its configured drawdown budget logic.

🔹 InpFixedLotSize = 0.01 – Sets the fixed trading volume to 0.01 lots when the corresponding fixed-lot sizing method is used.

🔹 InpLotPerStep = 0.01 – Sets the lot allocation increment to 0.01 lots for each applicable sizing step.

🔹 InpBalanceStep = 1000.0 – Defines a balance reference increment of 1000.0 for calculating position sizes under the EA's step-based sizing mechanism.

🔹 InpMaxTotalDDPercent = 25.0 – Sets the maximum total drawdown budget to 25.0%, establishing the configured overall drawdown threshold for position sizing and risk management.

🔹 InpRiskPerZonePercent = 1.5 – Sets the risk allocation per trading zone to 1.5%, defining the percentage used by the EA's zone-based risk calculation.

🔹 InpWeightedSizing = true – Enables weighted position sizing, allowing the EA to distribute trading volume according to its internal weighting calculations.

🔹 InpOverrideBalance = 0.0 – Sets the manual balance override to 0.0, indicating that no alternative balance value is configured by default.

🔹 InpEquityBased = false – Disables equity-based sizing, meaning the EA does not use the equity-based calculation option under this setting.

🔹 InpRatchetBalance = true – Enables ratchet balance functionality, allowing the EA to apply its internal balance-adjustment mechanism when calculating position sizing.

🔹 InpDailyDDStopPercent = 0.0 – Sets the daily drawdown stop threshold to 0.0%, indicating that no positive daily drawdown percentage limit is configured through this parameter.

🔹 InpVerifyMargin = true – Enables margin verification before trading, helping the EA check available account margin when evaluating new trading operations.

🔹 InpVolumeCap = 99.0 – Sets the maximum configured trading volume cap to 99.0 lots, providing an upper volume limit within the EA's position-sizing calculations.

Manual Zone Switches

This section provides individual controls for enabling or disabling the EA's trading zones. The zone switches are specifically relevant when the Activity mode is configured to Custom.

🔹 InpZoneNote = Only used when Activity = Custom – Indicates that the manual zone configuration is only applicable when the EA's activity mode is set to Custom.

🔹 InpZone1 = true – Enables trading Zone 1 when the Custom activity mode uses manual zone selection.

🔹 InpZone2 = true – Enables trading Zone 2 when the Custom activity mode uses manual zone selection.

🔹 InpZone3 = true – Enables trading Zone 3 when the Custom activity mode uses manual zone selection.

🔹 InpZone4 = true – Enables trading Zone 4 when the Custom activity mode uses manual zone selection.

🔹 InpZone5 = true – Enables trading Zone 5 when the Custom activity mode uses manual zone selection.

🔹 InpZone6 = true – Enables trading Zone 6 when the Custom activity mode uses manual zone selection.

🔹 InpZone7 = true – Enables trading Zone 7 when the Custom activity mode uses manual zone selection.

🔹 InpZone8 = true – Enables trading Zone 8 when the Custom activity mode uses manual zone selection.

🔹 InpZone9 = true – Enables trading Zone 9 when the Custom activity mode uses manual zone selection.

Identity Settings

These parameters identify the EA's trading orders and configure its execution identification and slippage tolerance.

🔹 InpMagicRoot = 444222 – Sets the EA's root Magic Number to 444222, helping identify and distinguish its trading operations from other Expert Advisors.

🔹 InpOrderTag = X-Prime – Defines the order identification tag as X-Prime, making the EA's trades easier to recognize in the MT5 trading terminal.

🔹 InpShortTag = false – Disables the short-tag option, keeping the standard order identification format instead of using the shortened tag configuration.

🔹 InpSlippagePips = 3.0 – Sets the permitted slippage parameter to 3.0 pips, defining the configured execution price deviation tolerance for trading operations.

News Filter Settings

The News Filter section provides optional controls for managing trading activity around economic announcements. Traders can configure news protection, pre-news and post-news intervals, currency selection, and automatic order management.

🔹 InpNewsEnable = false – Disables the economic news filter by default, meaning news-based trading restrictions are not activated through this main switch.

🔹 InpNewsBefore = 60 – Sets the pre-news protection interval to 60 minutes, defining how long before a scheduled economic announcement the news filter should consider restricting trading when enabled.

🔹 InpNewsAfter = 30 – Sets the post-news protection interval to 30 minutes, defining the configured waiting period after an economic announcement.

🔹 InpNewsDelete = true – Enables the news-related order deletion function, allowing the EA to manage pending orders around scheduled news events according to its internal rules.

🔹 InpNewsClosePos = false – Disables automatic position closing around news events, meaning existing positions are not configured to be automatically closed through this option.

🔹 InpNewsCloseBefore = 0 – Sets the pre-news position-closing interval to 0, indicating that no additional closing lead time is configured through this parameter.

🔹 InpNewsCurrencies = USD – Selects USD as the currency for news filtering, allowing the EA to focus on economic announcements associated with the US Dollar.

🔹 InpNewsMediumToo = false – Disables the option to include medium-impact economic news in the filter, leaving this additional news-impact category inactive by default.

🔹 InpNewsRefreshMin = 15 – Sets the news calendar refresh interval to 15 minutes, defining how frequently the EA updates its economic news information.

Conclusion

X Prime EA MT5 offers a comprehensive set of configuration parameters covering adaptive trading, directional controls, structure-based exits, position sizing, manual trading zones, and economic news protection.

Its default configuration enables both Buy and Sell trading, uses the ACT_FULL activity mode, and applies the SIZE_DD_BUDGET position-sizing method. The EA also includes a 25.0% maximum total drawdown parameter, 1.5% risk per zone, weighted sizing, and a 99.0-lot volume cap.

Another important feature is its customizable exit management, which includes structure trailing, two-stage exit confirmation, soft expiry, and rollover protection. Traders can also configure individual trading zones and adjust execution offsets to suit their preferred trading environment.

Overall, X Prime EA MT5 provides extensive flexibility for traders who want to customize automated trading and account risk controls. However, the default values should not automatically be considered safe for every account. In particular, the 25.0% maximum drawdown setting and 1.5% risk per zone require careful evaluation.

More in EA Settings Guides

All EA Settings Guides →