Development of a Production-Grade MQL5 Machine Learning Expert Advisor with Embedded ONNX Runtime Inference & Multi-Layered Risk Management Architecture

Spezifikation

SECTION 1: OVERVIEW AND COMPONENT ARCHITECTURE

The objective of this project is to build a fully automated Trading System in native MQL5 that integrates a pre-trained Open Neural Network Exchange (ONNX) machine learning model into MetaTrader 5. The EA must be engineered using strict Object-Oriented Programming (OOP) paradigms, featuring clean decoupling between signal inference, execution handlers, and risk management modules. The system must maintain zero memory leaks through deterministic pointer lifecycle management and operate reliably on both Netting and Hedging account structures without dependency on third-party libraries outside native MQL5 bindings.

SECTION 2: MACHINE LEARNING & TENSOR PIPELINE

Inference must be handled directly through MetaTrader 5 native ONNX functions (OnnxCreate , OnnxRun ). The input pipeline must implement strict parity with the feature engineering transformations developed in Python (CatBoost / PyTorch / Scikit-Learn).

The EA is responsible for maintaining rolling historical data buffers in memory to generate real-time feature vectors on a bar-close or tick-by-tick basis. Input float/double arrays must match the exact shape and layout expected by the model tensor [1, N] . Execution guardrails must be implemented to reject any trade signals if model evaluation outputs NaN , invalid probabilities, or if inference evaluation time exceeds 5 milliseconds. On inference exception, the EA must safely abort signal propagation and log a system warning to the terminal journal without opening default or unchecked positions.

SECTION 3: ORDER EXECUTION AND RISK CONTROL

Trade execution must utilize the native CTrade class or a custom robust execution wrapper with explicit slippage parameters, retry limits, and return code handling (TRADE_RETCODE_DONE ). Every market order must submit a hard Stop Loss and Take Profit attached directly within the initial trade request matrix; orders placed without mandatory protective stops are strictly forbidden.

Risk management must operate independently of the machine learning signal generator. The system must feature dynamic position sizing calculated as a fixed fractional risk percentage of account equity, optionally adjusted for volatility using historical ATR. Martingale, grid expansion, or unhedged position-averaging logic are strictly prohibited.

Hard account protection controls must enforce:

  1. Daily Max Equity Drawdown Limit: Immediate position liquidation and dynamic trading pause until the next daily reset.

  2. Absolute Account Trailing/Static Drawdown Limit: Permanent trading lockout with forced closure of all open positions upon breach.

  3. Spread and Liquidity Filter: Automatic block on trade placement during news events or periods where market spread exceeds predefined point limits.

SECTION 4: DIAGNOSTICS, LOGGING, AND CHART DISPLAY

The EA must output continuous operational telemetry to both the MetaTrader 5 Experts Journal and a structured CSV log file located in the MQL5 Files directory. Log entries must detail timestamps, raw feature vector values, raw model outputs, trade decision logic, slippage in points, and execution latency measured in milliseconds.

An optional, lightweight on-chart panel must render essential runtime metrics, including current model prediction probabilities, system operation status, daily net PnL, current floating drawdown, and account equity tracking.

SECTION 5: DELIVERABLES AND ACCEPTANCE TEST PROTOCOL

The developer must deliver the complete .mq5 source code, all custom .mqh header dependencies, and a sample .onnx model file for system verification. Acceptance requires successful backtesting on MetaTrader 5 Strategy Tester over multi-year tick data (Every Tick Based on Real Ticks) with zero uncaught execution errors, no unhandled trade context errors, zero memory leak warnings upon deinitialization (OnDeinit ), and full compliance with specified daily drawdown safety limits.


Bewerbungen

1
Entwickler 1
Bewertung
(329)
Projekte
515
19%
Schlichtung
35
46% / 31%
Frist nicht eingehalten
34
7%
Arbeitet
2
Entwickler 2
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
(291)
Projekte
363
30%
Schlichtung
37
27% / 65%
Frist nicht eingehalten
10
3%
Überlastet
Veröffentlicht: 10 Beispiele
4
Entwickler 4
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(402)
Projekte
520
24%
Schlichtung
61
57% / 25%
Frist nicht eingehalten
60
12%
Beschäftigt
6
Entwickler 6
Bewertung
(24)
Projekte
32
38%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
5
16%
Arbeitet
7
Entwickler 7
Bewertung
(2)
Projekte
2
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
(3)
Projekte
9
67%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
9
Entwickler 9
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 3 Beispiele
10
Entwickler 10
Bewertung
(2)
Projekte
3
33%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
1
33%
Arbeitet
Veröffentlicht: 3 Beispiele
11
Entwickler 11
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
12
Entwickler 12
Bewertung
(5)
Projekte
6
67%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
Veröffentlicht: 1 Artikel, 2 Beispiele
13
Entwickler 13
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
14
Entwickler 14
Bewertung
(21)
Projekte
27
41%
Schlichtung
3
33% / 67%
Frist nicht eingehalten
3
11%
Frei
15
Entwickler 15
Bewertung
(7)
Projekte
6
0%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
2
33%
Frei
16
Entwickler 16
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
17
Entwickler 17
Bewertung
(213)
Projekte
278
21%
Schlichtung
26
58% / 15%
Frist nicht eingehalten
0
Beschäftigt
18
Entwickler 18
Bewertung
(119)
Projekte
169
38%
Schlichtung
9
78% / 22%
Frist nicht eingehalten
15
9%
Frei
19
Entwickler 19
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 11 Beispiele
20
Entwickler 20
Bewertung
(47)
Projekte
62
55%
Schlichtung
7
86% / 0%
Frist nicht eingehalten
2
3%
Frei
21
Entwickler 21
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
22
Entwickler 22
Bewertung
(23)
Projekte
32
41%
Schlichtung
9
22% / 33%
Frist nicht eingehalten
4
13%
Beschäftigt
Veröffentlicht: 8 Artikel, 35 Beispiele
23
Entwickler 23
Bewertung
(185)
Projekte
199
47%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
1
1%
Arbeitet
24
Entwickler 24
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 5 Beispiele
25
Entwickler 25
Bewertung
(6)
Projekte
6
33%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
26
Entwickler 26
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
27
Entwickler 27
Bewertung
(10)
Projekte
12
33%
Schlichtung
0
Frist nicht eingehalten
2
17%
Arbeitet
Veröffentlicht: 1 Beispiel
28
Entwickler 28
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
29
Entwickler 29
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
30
Entwickler 30
Bewertung
(170)
Projekte
265
62%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
10
4%
Frei
31
Entwickler 31
Bewertung
(515)
Projekte
554
53%
Schlichtung
13
69% / 15%
Frist nicht eingehalten
3
1%
Frei
32
Entwickler 32
Bewertung
(22)
Projekte
30
20%
Schlichtung
8
63% / 13%
Frist nicht eingehalten
9
30%
Frei
33
Entwickler 33
Bewertung
(21)
Projekte
28
36%
Schlichtung
7
14% / 71%
Frist nicht eingehalten
2
7%
Frei
34
Entwickler 34
Bewertung
(25)
Projekte
31
13%
Schlichtung
14
0% / 79%
Frist nicht eingehalten
9
29%
Frei
35
Entwickler 35
Bewertung
(20)
Projekte
26
38%
Schlichtung
6
33% / 50%
Frist nicht eingehalten
0
Frei
36
Entwickler 36
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
Hi gentlemen, I want MT5 market orders placed (open and close orders) on MEXC trading through web browser. MEXC doesnt allow algo trading. - Need source code budget: USD 50 (quote me your price and delivery time) I need this at the earliest and this job is only for mexc.com, not binance or any other exchange I look forward to your price offer and your suggestions. Appreciate
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester
Scalping bort 30+ USD
GOLD SCALPING BOT STRATEGY Symbol: XAUUSD (Gold vs USD) Broker: Exness Account: Standard Starting Balance: $20 1. TIMEFRAME - Trend analysis: M15. - Entry timeframe: M5. - Trade only when the market has a clear direction. 2. INDICATORS - EMA 50 - EMA 200 - RSI 14 - Support and Resistance 3. BUY RULES The bot must open a BUY trade only when all these conditions are met: 1. EMA 50 is above EMA 200 on M15. 2. Price is
Request for an Existing Automated Trading System (Expert Advisor) I am looking to acquire an existing, fully functional Expert Advisor (EA) that trades Forex CFDs, with the option of trading other CFDs if the strategy supports them safely. Performance objectives Target average net monthly return: 1.5%. A consistent 1.0% monthly return may be considered if the system demonstrates strong risk control and credible
Hi All, I am looking for a bot EA which makes good profit. If any having please share it for TEST. After proper TESTING only I will make the payment, no cheating no fraud. Please do not waste the time also
Economic Event Analysis Back ground . I have an app which downloads economic event data from a website called MyFXBook, using a script. But currently this website does not allow any script to be used. So, I have to go back to manually downloading a .csv file that shows the economic events scheduled to occur in the coming week Python . This job requires Python. Execution of this job by any other method that does not
Are you able to build one bot for stock and one for ninja trader and tell me the win rate on it. I need ninja trader bot that enter buy and exit according the move to do not stay long in the market in each entry . That can follow the smart money concept or other if you have a good one
I am looking for an experienced developer to build a professional web-based trading performance dashboard connected to an MT5 trading account and/or FX Blue. The dashboard should automatically collect trading data and display: • Daily P&L calendar – profitable days green, losing days red and no-trade days grey • Equity/growth curve • Drawdown curve • Initial capital and current balance • Net profit and percentage

Projektdetails

Budget
500 - 1995 USD
Ausführungsfristen
von 1 bis 14 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0