Market depth with MT4

Discussion in 'Forex' started by nathans, Jan 4, 2021.

  1. nathans

    nathans

    Hello guys,
    Can one use MT4/MT5 to access and store (to disk) market depth tick data?
    Thanks, N
     
  2. Esha.J

    Esha.J

    Depth of Market allows users to quickly manage stop levels (Stop Loss and Take Profit) and pending orders of open positions. To do this, enable "One-click trading" in the client terminal's settings. Trade requests are sent from Depth of Market instantly without showing a trading dialog.
     
  3. 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.
     
    nathans likes this.
  4. nathans

    nathans

    Thank you HobbyTrading. rhis is indeed in the right direction. I saw however that:

    Trade Orders in Depth Of Market
    For equity securities, the Depth of Market window is available, where you can see the current Buy and Sell orders. Desired direction of a trade operation, required amount and requested price are specified for each order.

    Do you know whether Depth of Market data is available for Forex pairs?
     
  5. 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.
     
  6. maxinger

    maxinger

    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.
     
  7. nathans

    nathans

    Totally agree to GIGO!
    Could you be more specific on why and how do you know that this is garbage data?
     
  8. nathans

    nathans

    I am capable to get market depth forex data via IB API...
     
  9. senumouv

    senumouv

    You will be able to manage your stop loss level or some pending orders by accessing the depth of market with MT4. Haven’t gotten my hands on MT5 yet, I have been running mt4 on Etoro and Fxview. It’s easy to customise stop loss on these platforms for me.
     
  10. kroxobor

    kroxobor

    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.
     
    #10     Jan 7, 2021