First method is more preferable to calculate current price
Because <other things being equal> this with 100% compatibility allows to get the most compact code
For example
double ASK () { return SymbolInfoDouble ( _Symbol , SYMBOL_ASK ) ; } double BID () { return SymbolInfoDouble ( _Symbol , SYMBOL_BID ) ; }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi;
There are apparently 3 choices to calculate current price. Which one is preferred and why?
SymbolInfoDouble(Symbol(), SYMBOL_BID);
or
MarketInfo(Symbol(), MODE_BID);
or
SymbolInfoTick(Symbol(), MODE_BID);
Appreciate an explanation. Thanks.