MQL4 Reference
Common functions
MarketInfo
| double MarketInfo( |
string symbol, int type) |
Returns various data about securities listed in the Market Watch window.
A part of information about the current security is stored in predefined variables.
Parameters:
| symbol |
- |
Security symbol. |
| type |
- |
Request identifier that defines the type of information to be returned. Can be any of values of request identifiers. |
Sample:
double bid =MarketInfo("EURUSD",MODE_BID);
double ask =MarketInfo("EURUSD",MODE_ASK);
double point =MarketInfo("EURUSD",MODE_POINT);
int digits=MarketInfo("EURUSD",MODE_DIGITS);
int spread=MarketInfo("EURUSD",MODE_SPREAD);
|
|
|