where can I download library file: "Trade.mqh" for mql4?

 

where can I download library file:  "Trade.mqh"  for mql4?


can I use the mql5 version of that file for mql4?

I have that in metatrader5 but no in metatrader4 libraries.

Please help.

 

no, you cant use the mt5 version. You can try to rewrite it, but it will be a lot different because of the different position mechanism of MT4 and MT5.

Maybe metaquotes will come up with something, try to ask them. 

 
amir_avatar:

no, you cant use the mt5 version. You can try to rewrite it, but it will be a lot different because of the different position mechanism of MT4 and MT5.

Maybe metaquotes will come up with something, try to ask them. 

They said something like : "Probably yes, but we don't know when".
 

Hi, 

where can I download library file:  "Trade.mqh"  for mql4?

Thank you 

 
Volmog #:

Hi, 

where can I download library file:  "Trade.mqh"  for mql4?

Thank you 

On MT4 click File > Open Data Folder .

Go to MQL4\Includes\Trade\ 

Its there 

If you want to use the library directly 

type 

#include <Trade\Trade.mqh> on top of your code

 
@Volmog #: Hi, where can I download library file:  "Trade.mqh"  for mql4? Thank you 
@Lorentzos Roussos #: On MT4 click File > Open Data Folder . Go to MQL4\Includes\Trade\ Its there  If you want to use the library directly type #include <Trade\Trade.mqh> on top of your code

As already stated above, MQL4 does not have trading classes in the Standard Library.

There is no "Trade.mqh" nor is there a "MQL4\Includes\Trade\" directory.

Only MQL5 supports that!

Reason: