After spending 1/2 hour fiddling I figured out that in the code below, the parameter "index" must have one of the values 0,1,2. It does not seem to matter which value is used where. Any value > 2 causes the statement to not display. This is true whether there is one, two or three color statements.
What is that parameter for?
If the yMin and yMax values are used, the index must be there or a syntax error occurs.
//test bar color deal
if (DIOscState == DIOscIN) {
setBarBgColor (Color.green,0,20,30);
}
if (DIOscState == DIOscOUT) {
setBarBgColor (Color.lightgrey,0,10,20);
}
if (DIOscState == DIOscBET) {
setBarBgColor (Color.lime,0,5,10);
}
What is that parameter for?
If the yMin and yMax values are used, the index must be there or a syntax error occurs.
//test bar color deal
if (DIOscState == DIOscIN) {
setBarBgColor (Color.green,0,20,30);
}
if (DIOscState == DIOscOUT) {
setBarBgColor (Color.lightgrey,0,10,20);
}
if (DIOscState == DIOscBET) {
setBarBgColor (Color.lime,0,5,10);
}
Comment