question about Marketinfo
Results 1 to 6 of 6

Thread: question about Marketinfo

  1. #1
    RefreshRates();
    Alert (price =, MarketInfo(Symbol,MODE_BID));


    Why does this not work, or tell me that its 0?

  2. #2
    1 Attachment(s) I'm not completely certain exactly what your asking but I believe I know exactly what you want.

    Take a peek at the image I attached whether it thats what you want, here is the code for it:

    Inserted Code RefreshRates(); Alert (Symbol(), price =,MarketInfo(Symbol(),MODE_BID)); I'm no coder, so I'm not certain whether this is the most efficient code, but it works.

  3. #3
    I think the word symbol s/b (NULL,MODE_BID ) that you may not be defining correctly.

  4. #4
    RefreshRates();
    Alert (price =, MarketInfo(EURAUD,MODE_BID));



    doesn't work or returns as zero?

  5. #5
    Hi hopokuk,

    a few things... if I had to guess, I would guess you're backtesting, not forward testing, and that when you did MarketInfo(EURAUD,MODE_BID), you weren't utilizing the EURAUD chart on your test. If I am correct, why I know that is that this is a restriction of MT4. You can't backtest currencies aside from the one you're working on. This is a major pain, and if anyone has a workaround, I would really like to hear it. The one thing I could suggest is to forward test, this ought to work fine.

  6. #6
    If use miniature acounts, then add to pare name.
    EURUSDm, etc..
    Check make sure, plleese.
    thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.