🔢 TrainedModelPlusAIgoldKing EA MT5 Settings: Complete Inputs Guide
TrainedModelPlusAIgoldKing EA MT5 is an automated trading system for MetaTrader 5 that combines trained machine-learning (ML) signals with a second decision model to evaluate potential trading opportunities. Its configuration includes AI server communication, confidence thresholds, risk management, ATR-based stop-loss and take-profit levels, trailing stops, adaptive spread filtering, break-even protection, and partial position closing.
The EA also provides controls for managing multiple positions, limiting consecutive losses, closing trades when opposite signals appear, and exporting data for AI training. Understanding these settings helps traders configure the system according to their preferred trading conditions, risk tolerance, and testing objectives.

⚙️ AI Server & Model Configuration
🔹 Enable for MQL Marketplace Submission: true — Enables the configuration intended for marketplace submission, allowing the EA to operate with the specified submission-related setting.
🔹 Number of Candles to Send to the AI Server: 1000 — Sets the number of historical candles sent to the AI server for analysis, providing up to 1,000 candles of market data for the model's decision process.
🔹 Seconds Between Updates (3600 = 1 Hour): 3600 — Sets the AI update interval to 3,600 seconds, equivalent to one hour, controlling how frequently the EA refreshes its server-based analysis.
🔹 Change to Your Server Path: https://projectosai.com/trading/trade_decision — Specifies the server endpoint used to submit trading data and receive AI-generated decisions; the endpoint must remain accessible and compatible with the EA's request format.
🔹 Risk Percentage per Trade: 1.0 — Sets the configured risk percentage to 1.0% per trade, although the actual monetary risk depends on the EA's position-sizing calculation and stop-loss implementation.
🔹 Slippage: 30 — Sets the permitted execution deviation to 30 points, defining the price tolerance used when submitting or executing trades, subject to the EA's implementation and broker rules.
🔹 Timeframe to Analyze: 1 Hour — Sets the main analysis timeframe to H1, allowing the EA to evaluate hourly market candles when preparing its trading decisions.
⚙️ AI Signal Confirmation & Confidence Filters
🔹 Only Trade When Both Models Agree: true — Requires both decision models to agree before opening a trade, providing an additional confirmation layer intended to reduce conflicting trading signals.
🔹 Minimum ML Confidence to Consider Trading: 0.6 — Sets the minimum machine-learning confidence threshold to 0.6, or 60% if the model expresses confidence on a normalized 0–1 scale.
🔹 Allow Trading on ML-Only Signals with High Confidence: false — Disables trades based solely on the machine-learning model, requiring the EA to follow its other signal-confirmation rules.
🔹 Confidence Threshold for ML-Only Trades: 0.8 — Sets the confidence threshold to 0.8, equivalent to 80% on a normalized 0–1 scale, for ML-only trades if that trading mode is enabled.
🔹 Show Detailed Info When Models Disagree: true — Enables detailed information about disagreements between the models, helping users inspect why a potential trade may not satisfy the configured confirmation rules.
⚙️ Position Sizing & Risk Management
🔹 Maximum Position Size in Lots: 1.0 — Sets the maximum configured position size to 1.0 lot, providing an upper limit for position sizing; this is substantially larger than the exposure implied by a 0.01-lot starting position, if one is used elsewhere in the setup.
🔹 Use Stop Loss Orders: true — Enables stop-loss orders for trades, allowing the EA to define an exit level intended to limit losses when the market moves against an open position.
🔹 SL Distance as ATR Multiplier: 1.5 — Sets the stop-loss distance to 1.5 times the Average True Range (ATR), allowing the stop distance to adapt to the volatility measured by the EA.
🔹 Use Take Profit Orders: true — Enables take-profit orders so positions can close automatically when the configured profit target is reached.
🔹 TP Distance as ATR Multiplier: 2.5 — Sets the take-profit distance to 2.5 times ATR, defining a volatility-adjusted profit target that is wider than the configured 1.5 ATR stop-loss distance.
🔹 Use Trailing Stop: true — Enables trailing-stop management, allowing the EA to adjust stop-loss levels as the market moves favorably, according to its trailing logic.
🔹 Trailing Stop ATR Multiplier: 1.0 — Sets the trailing-stop distance to 1.0 times ATR, allowing the distance to respond to measured market volatility.
⚙️ Spread & Execution Filters
🔹 Base Max Allowed Spread in Points: 20 — Sets the baseline maximum permitted spread to 20 points, helping the EA avoid opening trades when trading costs exceed the configured limit.
🔹 Use Adaptive Spread Limits Based on Volatility: true — Enables volatility-adjusted spread filtering, allowing the EA to modify its permitted spread according to market conditions rather than relying exclusively on a fixed threshold.
🔹 How Much Additional Spread to Allow per ATR Unit: 0.01 — Sets the additional-spread adjustment factor to 0.01 per ATR unit, controlling how the EA increases the permitted spread as volatility changes.
🔹 Maximum Additional Spread Points Allowed: 40 — Caps the extra spread allowance at 40 points, limiting how much the adaptive spread filter can expand beyond its base threshold.
⚙️ Trade Exit & Position Duration Controls
🔹 Close Positions on Opposite Signal: true — Enables closing positions when an opposite trading signal appears, allowing the EA to respond to potential changes in market direction.
🔹 Maximum Hours to Keep a Position Open: 48 — Sets the maximum position holding period to 48 hours, or two days, if the EA enforces this time-based exit as configured.
🔹 Maximum Number of Consecutive Losing Trades: 5 — Sets the consecutive losing-trade threshold to 5, providing a limit that the EA may use to restrict further trading after a sequence of losses; the exact response depends on its internal logic.
🔹 Move to Break Even After Price Moves in Your Favor: true — Enables break-even management, allowing the EA to move the stop-loss toward the entry price after a favorable price movement meets the configured condition.
🔹 How Far Price Must Move Before Break Even: 1.0 — Sets the favorable price-movement threshold to 1.0 in the EA's configured measurement units, which must be verified to determine whether it represents price units, ATR units, or another distance measure.
⚙️ Chart Display & Signal Colors
🔹 Display Trading Information on Chart: true — Enables the display of trading-related information directly on the MT5 chart, helping users monitor the EA's status and relevant signal information.
🔹 Color for Buy Signals: Green — Sets buy-signal markers or related visual elements to green, making potential buying opportunities easier to distinguish.
🔹 Color for Sell Signals: Red — Sets sell-signal markers or related visual elements to red, providing a contrasting visual indication of potential selling opportunities.
🔹 Color for Information Text: White — Sets informational text displayed by the EA to white, improving visibility depending on the chart's background color and visual theme.
⚙️ Trade Identification & Partial Position Closing
🔹 Magic Number for Identifying EA Trades: 54321 — Assigns the magic number 54321 to identify trades associated with the EA, helping distinguish its positions from those managed by other expert advisors or manual trading.
🔹 Whether to Use Partial Position Closure: true — Enables partial position closing, allowing the EA to close a portion of an open trade when the configured profit condition is reached.
🔹 Profit in Pips Before Partial Close: 300.0 — Sets the profit threshold for partial closing to 300.0 pips, subject to the EA's pip-conversion logic and the symbol's specifications.
🔹 Percentage of Position to Close (1–99): 50.0 — Sets the partial-close percentage to 50.0%, instructing the EA to close half of the eligible position when the specified conditions are satisfied.
⚙️ Multiple Position Management
🔹 Allow Opening Multiple Positions: true — Enables the EA to open multiple positions when its trading signals and other configured conditions permit additional entries.
🔹 Maximum Positions in One Direction: 3 — Limits the number of positions in a single direction to 3, helping control the accumulation of simultaneous buy or sell exposure.
⚙️ AI Training & Backtesting Configuration
🔹 Export Data for AI Training During Testing: false — Disables the export of training data during testing, preventing the EA from generating training-data exports under the displayed configuration.
🔹 File to Export Training Data: training_data.csv — Specifies training_data.csv as the filename for exported AI training data when the export feature is enabled.
🔹 Process Every Tick During Backtesting: true — Enables every-tick processing during backtesting, allowing the EA to evaluate its logic at each simulated tick rather than relying exclusively on less granular price updates.
⚙️ EA Instance & Symbol Tracking
🔹 Unique Identifier for This EA Instance: online — Sets the instance identifier to online, potentially distinguishing this running EA instance from other instances that use the same trading system.
🔹 Override Symbol for Tracking (Leave Empty for Chart Symbol): Empty — Leaves the symbol override blank, indicating that the EA should use the symbol associated with the current chart for tracking, provided this matches its implementation.
🔢 Conclusion
TrainedModelPlusAIgoldKing EA MT5 combines AI-based signal evaluation with configurable position sizing, ATR-based exits, adaptive spread limits, break-even protection, and partial position closing. Its settings provide controls for balancing model confidence, execution conditions, and trade-management rules.










