MQL4 Reference Predefined Variables Digits

int Digits

Number of digits after decimal point for the current symbol prices.

Example:

  Print(DoubleToStr(Close[0], Digits));

See also

MarketInfo()