Reset Variable and show Zero
-
Hi,
I Wanna show current profit/loss for buy and sell groups on Chart. I did it and it's working.
But when I close all of trades in one group, double Variable shows "0.000000e+00" instead of "0". I used "Modify Variable block" for resetting double variable.
I don't have problem with integer variable.
Just double variables don't reset correctly.
Please help me.
you can see my project here: https://fxdreema.com/shared/0VfW3rtkd -
Move your resetting 'modify variables' blocks to the appropriate block on the 'on chart' tab instead of using them on the 'on tick' tab.
-
Thanks buddy.
Unfortunately it didn't work.
New Update: https://fxdreema.com/shared/c4V1xBWoe
Display Result: I have this problem at first of loading EA and resetting again.
It shows double values like this: "0.000000e+00" instead of "0" -
Then I cannot find a reason for it. You should contact the admin and let him know.
-
Perhaps try the adjust field
https://fxdreema.com/forum/topic/7730/digit-adjustment-of-variable-solved/7= NormalizeDouble($, 5)
-
@diginvest
It is still a 0, just a display issue