Normalize double - price from object on the chart
-
Modify variables (variable1) - Object on the chart (Attributes numeric), Object source (Pick by name), Object name (line1), Attribute (Price level 1)
When I get price value from line1 (created on the chart), it give me value in 8 decimals (example: 1.12955725) and I need it in 5 decimals (1.12956)
?
-
Do you have problems if you use it that way?
-
I am not trying it in block Condition yet, but I think it can there working without problems.
Now, it is only visual problem in chart (example: I need know pips between two moved lines on the chart, so (price in line1 - price in line2)*10000 = pips
and there pips are in 7 decimals, like 8,1234567
it is not functional problem, only visual
I ask only, if there is a way implemented to normalize these double in fxdreema, when no, I can make custom block to normalize double
-
There is a MQL4/MQL5 function called NormalizeDouble. Most of the time you can work with these values, only sometimes they need to be normalized. Why... I don't know really, this is some thing in C++ that I still don't understand.