📝 IA Trader Pro

OnnxCreate, OnnxRun and MQL5 Functions: Complete AI Reference (Build 5572 Updated)

By Dan Machado

Cheat-sheet of native ONNX functions in MQL5, updated for Build 5572 with new logging flags and CUDA support. Each function with signature, parameters, return value and minimal example.

🔥 Build 5572 Update (January 2026)

MT5 Build 5572 brought major changes to ONNX support: (1) Official CUDA GPU support — models run 5-15x faster on NVIDIA Turing+ GPUs. (2) Logging system reformulatedONNX_DEBUG_LOGS is deprecated. Use: ONNX_LOGLEVEL_VERBOSE, ONNX_LOGLEVEL_INFO, ONNX_LOGLEVEL_WARNING, ONNX_LOGLEVEL_ERROR, ONNX_LOGLEVEL_FATAL. (3) On-demand loading — library loads only on first use. (4) CUDA settings in Tools → Options → Expert Advisors → Allow CUDA usage.

Complete reference of native MQL5 ONNX functions updated for Build 5572: OnnxCreate, OnnxRun, new ONNX_LOGLEVEL_* flags, CUDA GPU support and error codes.

🚀 To test ONNX EAs, free Deriv MT5 demo ($10,000 virtual):

Open Deriv MT5 Demo →

DM

Dan Machado

Founder IA Trader Pro · AI applied to trading expert

⚠️ Disclaimer: Educational content, not investment advice. Trading involves substantial risk. AI models don’t guarantee profit. Always test in demo before going live. Article contains Deriv affiliate link.