You can't "import" MT4/5 core into your c++ code directly. But you can implement wrapper methods. Create a bridge script which imports your c++ callbacks and calls MT4/5 methods, then invokes the callbacks with obtained results.
If you provide more info about the task, this could make it easier to suggest a proper solution.
You can't "import" MT4/5 core into your c++ code directly. But you can implement wrapper methods. Create a bridge script which imports your c++ callbacks and calls MT4/5 methods, then invokes the callbacks with obtained results.
If you provide more info about the task, this could make it easier to suggest a proper solution.
This is why I'm asking about more details. For example, in some cases one could decide to built an external analytical/aggregating software, which uses MT (and other products) as data provider.
Well, for instance : with AccountInfoDouble(), what I used to do is to call it in the .ex4 and pass the value to an imported function from a DLL; which roughly is something like this:
in the mq4/mq5 file : #import double func1(double Var1) #import .....func1 being within the DLL and of course Var1 is the passed value of AccountInfoDouble(). Well that's the traditional way.
And I was wondering whether one can call directly AccountInfoDouble() from the DLL? Mainly for security purpose, having heard that .ex4 file is relatively easy to decompile, any security measure can be easily dodged by changing the checking value within the .ex4 file...even though it is the DLL that handles the function, Var1 can be easily perverted, since it is given within the .ex4 file...
Am I wrong?
Thank you and cheers,
NA
Well, for instance : with AccountInfoDouble(), what I used to do is to call it in the .ex4 and pass the value to an imported function from a DLL; which roughly is something like this:
in the mq4/mq5 file : #import double func1(double Var1) #import .....func1 being within the DLL and of course Var1 is the passed value of AccountInfoDouble(). Well that's the traditional way.
And I was wondering whether one can call directly AccountInfoDouble() from the DLL? Mainly for security purpose, having heard that .ex4 file is relatively easy to decompile, any security measure can be easily dodged by changing the checking value within the .ex4 file...even though it is the DLL that handles the function, Var1 can be easily perverted, since it is given within the .ex4 file...
Am I wrong?
Thank you and cheers,
NA
New version of ex4 uses the same - improved - level of protection which is used for ex5, so I don't think one can find a decompiler for it.
You can't call MT core functions from a DLL directly. For security reason as well, by the way.
From what Metaquotes said, ex4 and ex5 are at the same level of security as DLL.
A OK cool. I did not know that. It is somehow reassuring, because from what I have found out, the previous versions/builds was as easily decompiled as cutting butter...
Well many thanks for the answers, cheers,
NA
Dear folks,
I am a computer engineer and forex trader. I’ve been working closely with an AI professor at Brigham University to develop an intelligent EA, with no success. Perhaps we can discuss your project.
Lee
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone,
There are a lots of topic dealing with importing a function from a DLL into a mq4 or mq5 file, but none about doing the contrary i.e importing a mql4 or mql5 function into a c++ code?
Does anyone know how to do this?
Thank you in advance,
Cheers,
NA