Download MetaTrader 5

Get the precious value of MACD. - page 2

To add comments, please log in or register
qjol
3243
qjol  
bottom line it's the same
but if you read the documentation carefully you can see a small difference

string DoubleToString(
double value, // number
int digits=8 // number of digits after decimal point
);

string DoubleToStr(
int value, // value
int digits // precision
);
Simon Gniadkowski
Moderator
18025
Simon Gniadkowski  
qjol:
bottom line it's the same
but if you read the documentation carefully you can see a small difference

string DoubleToString(
double value, // number
int digits=8 // number of digits after decimal point
);

string DoubleToStr(
int value, // value
int digits // precision
);
So not specifying the precision for DoublToStr() must return an error 4050 . . . unless the Documentation is incorrect.
qjol
3243
qjol  
RaptorUK:
So not specifying the precision for DoublToStr() must return an error 4050 . . .

right (it's supposed to but...)
RaptorUK:
unless the Documentation is incorrect.


and right
Keith Watford
Moderator
10652
Keith Watford  

If you enter string DoubleToStr(.....,

the autoparameter info shows int digits=8

so it does suggest that 8 is the default.

SYED NAUFAL GADDAFI
1399
SYED NAUFAL GADDAFI  
GumRai:

If you enter string DoubleToStr(.....,

the autoparameter info shows int digits=8

so it does suggest that 8 is the default.


In case no parameters set, yes, 8 is the default.
12
To add comments, please log in or register