Download MetaTrader 5

Is it possible to call the MQL function from the DLL ? like calling AccountNumber() inside the DLL

To add comments, please log in or register
Forex Trader
114267
Forex Trader 2009.01.08 18:10 

Is it possible to call the MQL function from the DLL ? like calling AccountNumber() inside the DLL


so I have a plan to call and check the AccountNumber() from the DLL file and not from the MQL (ex4 file)


how to do that ?



thank you

Amy Liu
645
Amy Liu 2016.10.03 11:55  
Forex Trader:

Is it possible to call the MQL function from the DLL ? like calling AccountNumber() inside the DLL


so I have a plan to call and check the AccountNumber() from the DLL file and not from the MQL (ex4 file)


how to do that ?



thank you

In my knowledge, you have to write a script or EA to invoke your DLL and send AccountNumber() to you.
Jose Francisco Casado Fernandez
2749
Jose Francisco Casado Fernandez 2016.10.04 21:35  
No, it's not possible to call mql functions from inside a dll. You have to call the dll from your EA or indicator and pass the account number like a parameter, so the dll will receive the number and will be able to work with it. Regards.
To add comments, please log in or register