Comment shows 2147483647
-
I have some comments which display the contents of a variable, when this variable is 0 the comment displays the empty value 2147483647, can anyone advise how this comment could be modified to display 0 or zero or anything less distracting, thanks in advance.
-
That's weird. What is the variable storing exactly?
-
This value is one I have seen before, but in some instances it changes, try using an indicator is visible block with this variable and display 0 or variable depending on whether orange or yellow is activated
-
Thanks for the replies, the comment displays a variable value which is itself the sum of two other variables. Basically the number of open lots x lot value, it also happens when displaying the number of open lots on its own. These figures are gleaned from a basket of trades block. When both of these are null (zero) the comment displays 2147483647? Once the variables have a value they display correctly.
-
I know trying to show how you might be able to change to 0 when necessary
-
Thx jstap, having some success with that now, but still have a couple that won't cooperate, will update later.
-
@gnonto
It is the EMPTY_VALUE for indicator buffer.That is, the default value assigned to the indicator buffer after initiation but before your computation. (i.e. initiation)
-
In this link is what I meant, put your indicator in the blocks and see if it's doing as needed: https://fxdreema.com/shared/5saCua1G
-
Excuse my lack of knowledge here but I'm still struggling, I've created a shared project with the elements that are casing me grief here: https://fxdreema.com/shared/h7rjau1gb
Thanks for your input so far.
-
Have managed workaround by using a condition only displaying comments when variables have a value other than 0.
-
@gnonto Congrats!
