I have a script that has to go back and update a previous bar's value. Here are the two main lines of my code:
setBar(Bar.FgColor, -1, 2, Color.magenta);
// For Bar.Value, the offset is different.
// Offset 0 refers to the previous bar!!
setBar(Bar.Value, 0, 2, 1);
The issue I am having is that it does go back and color the previous bar with magenta. I know because no other line is coloring that bar with a magenta foreground color.
The problem is that the series involved normally is a true or false value. But I can not get the updated cursor value to show true when I am setting it to that.
SO I have tried using true, "true", and 1 for the value in the setBar command. The value always comes out as Off in the cursor window.
Is there a reason for this?
setBar(Bar.FgColor, -1, 2, Color.magenta);
// For Bar.Value, the offset is different.
// Offset 0 refers to the previous bar!!
setBar(Bar.Value, 0, 2, 1);
The issue I am having is that it does go back and color the previous bar with magenta. I know because no other line is coloring that bar with a magenta foreground color.
The problem is that the series involved normally is a true or false value. But I can not get the updated cursor value to show true when I am setting it to that.
SO I have tried using true, "true", and 1 for the value in the setBar command. The value always comes out as Off in the cursor window.
Is there a reason for this?
Comment