Search code examples
dllmetatrader4mql4metatrader5mql5

Call Metatrader MQL4/MQL5 function from imported DLL


I would like to call MQL4 or MQL5 function from my own imported DLL in Metatrader.

Is it possible?


Solution

  • Forest,

    As far as i have experienced during the past 2 years working with MetaTrader, there is no real way to call MQL functions from an external DLL. But there are some custom built APIs that closely resemble to what you want to achieve:

    MT4 API

    MetaTrader™ Java / .Net API

    These APIs do somewhat allow you to use MQL functionality out-of-the-box