Point and MarketInfo(Symbol(), MODE_POINT) return 0

 

Hello,


I don't understand why :

int start()
{
    double CurrentPoint = MarketInfo(Symbol(), MODE_POINT);
    Print("Symbol: ", Symbol(), " Ask: ", Ask, " Bid: ", Bid, " Point: ", Point, " CurrentPoint: ", CurrentPoint);
}

Returns :

15:54:44 MyEA GBPUSD,M1: Symbol: GBPUSD Ask: 1.5539 Bid: 1.5536 Point: 0 CurrentPoint: 0

Why 0 for Point ?


Regards,

Jean

 

From the documentation for Print():

Data of double type are printed with 4 decimal digits after point. To output more precisely, use the DoubleToStr() function.

So in your case Point is probably 0.00001, but the 5th digit after the decimal point is not Printed.

 
gordon:

From the documentation for Print():

So in your case Point is probably 0.00001, but the 5th digit after the decimal point is not Printed.


That is right, thank you :)
 
btw, the same is happening with Bid and Ask...
Reason: