It looks like that MQL5 for MT5 has a function to get the market book: https://www.mql5.com/en/docs/marketinformation/marketbookgetHello guys,
Can one use MT4/MT5 to access and store (to disk) market depth tick data?
Thanks, N
It looks like that MQL5 for MT5 has a function to get the market book: https://www.mql5.com/en/docs/marketinformation/marketbookget
Also look into MarketBookAdd and MarketBookRelease. I haven't worked with these functions myself so I don't know how they operate.
With MQL5 it is possible to write data to a file (e.g. csv file). However, you cannot freely choose the directory where that file will be placed. MQL5 has some limitations on that.
I might be wrong, but am under the impression that the structure of the order book for forex is different from a order book for stocks, options, or futures. So I don't know whether there is an equivalent of market depth available for forex.Do you know whether Depth of Market data is available for Forex pairs?
Hello guys,
Can one use MT4/MT5 to access and store (to disk) market depth tick data?
Thanks, N
As far as I know, those market depth data is garbage data.
Analyzing garbage data ---> output will be garbage.
Just focus on the nearest bid-offer rows.
I might be wrong, but am under the impression that the structure of the order book for forex is different from a order book for stocks, options, or futures. So I don't know whether there is an equivalent of market depth available for forex.
Depends on what products you trade. If it is CFD you trade with a dealer, he provides liquidity to you so there is nothing to display except price.Hello guys,
Can one use MT4/MT5 to access and store (to disk) market depth tick data?
Thanks, N