Interbank FX?
In such case use substraction Ask - Bid
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.
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
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?