Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 2 of 2

Thread: Market Deph in Metatrader 5

  1. #1
    serfadeveloper is offline Registered User
    Join Date
    May 2010
    Posts
    2

    Cool Market Deph in Metatrader 5

    I was wondering if any one knows is there any limitation o requisite in acccesing de market deph? does it need to be an active account? or can it be tested in demo? Im onable to access it. I also tried using MarketBookGet() on and EA using the example in the docs

    MqlBookInfo priceArray[];
    bool getBook=MarketBookGet(NULL,priceArray);
    if(getBook)
    {
    int size=ArraySize(priceArray);
    Print("MarketBookInfo about ",Symbol());
    }
    else
    {
    Print("Failed to receive DOM for the symbol ",Symbol());
    }
    having put MarketBookAdd() in the OnInit() function. But it always goes to the part of Failed. Im new to MQL thanks in advance for your help

  2. #2
    skipper4x's Avatar
    skipper4x is offline Member
    Join Date
    Mar 2012
    Posts
    32
    About DOM, the MQL5 help is referring only to "equity securities".

    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.
    I suppose DOM will be available also for forex crosses only if your broker is a true ECN broker and only in real account. But it's only my opinion...

    Take care

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.