Getting point spread

 
I am using the following to compute the spread in points for the current chart:

string symbol = Symbol(); // Get chart symbol
int spread = MarketInfo(symbol,MODE_SPREAD);

spread is being set to 0. I have verified that symbol is valid (set to "EURUSD").

What s wrong with the above?
 

Interbank FX?

In such case use substraction Ask - Bid

 
use this : it works

int spread = MathRound((Ask-Bid)/Point);
 

The function MarketInfo returns a value of type double.

double dDealingSpread=MarketInfo(Symbol(), MODE_SPREAD);

Print("dDealingSpread=",dDealingSpread);


double dDigits=MarketInfo(Symbol(),MODE_DIGITS);
Print("dDigits=",dDigits);

it is the samples in the documentation which are in error.

 

How to get current price when you mouse move to the point on moving average.