Download MetaTrader 5

Market Depth Questions

To add comments, please log in or register
Learning MQL5? Start with documentation!
aarce
28
aarce 2015.10.05 02:16 

Hello

I'm trying to write an indicator based on DOM information

But the related functions and identifiers (MarketBookAdd, MarketBookGet, etc) show "not defined" error when I compile the program

Question:

1) Are these funstions available in MT4?

2) How to fix the "not defined" errors? Do I have to <include> some files?

Best Regards



 

Stuart Browne
5815
Stuart Browne 2015.10.05 02:47  
I don't believe MQLBookInfo / MarketBookGet etc is supported in MQL4
aarce
28
aarce 2015.10.05 03:28  

Thanks Stuart

what about compiling errors in MT5? Any sugestions?

Stuart Browne
5815
Stuart Browne 2015.10.05 04:01  
aarce:

Thanks Stuart

what about compiling errors in MT5? Any sugestions?

I hardly ever code in MQL5 so probably not the right person to ask sorry. But I'd suggest posting your code and error logs would be helpful. 
Alain Verleyen
Moderator
30742
Alain Verleyen 2015.10.05 10:49  
aarce:

Hello

I'm trying to write an indicator based on DOM information

But the related functions and identifiers (MarketBookAdd, MarketBookGet, etc) show "not defined" error when I compile the program

Question:

1) Are these funstions available in MT4?

2) How to fix the "not defined" errors? Do I have to <include> some files?

Best Regards



 

You received a message "not defined" and then ask if they are available, maybe to message error should be "not available" ?

You have to use MT5 if you want MarketDepth.

aarce
28
aarce 2015.10.06 08:03  

Thanks Alain for your help

Even under MT5 I got the compiling errors:

What can I do?

aarce
28
aarce 2015.10.06 08:08  

Here an image with the errors:


To add comments, please log in or register