RefreshRates();
Alert (price =, MarketInfo(Symbol,MODE_BID));
Why does this not work, or tell me that its 0?
RefreshRates();
Alert (price =, MarketInfo(Symbol,MODE_BID));
Why does this not work, or tell me that its 0?
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.
I think the word symbol s/b (NULL,MODE_BID ) that you may not be defining correctly.
RefreshRates();
Alert (price =, MarketInfo(EURAUD,MODE_BID));
doesn't work or returns as zero?
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.
If use miniature acounts, then add to pare name.
EURUSDm, etc..
Check make sure, plleese.
thank you.