I would like to compare Open and Open.
My broker uses 5 decimal. So, I would like to compare them as 5 decimal number.
In Data window, I can see Open price with 5 decimals.
However, when I do Print() it, it appears only with 4 decimals.
ex) On data window, Open = 0.89594 However, it appears as 0.8959 on log file.
I tried followings.
Print("Open = ", Open);
double open0 = Open
Print("Open = ", NormalizeDouble(open0, 5)) ;
open0 = NormalizeDouble(open0, 5);
Print("Open = ", open0 ) ;
If anybody has any idea, your comment is much appreciated!
Gosh... it was Print() related issue...
WHRoeder, thanks again. Much much appreciated!
To add comments, please log in or register