ziggy
You can apply to the returned string the same logic that you would use to color the plot of a returned value
Alex
You can apply to the returned string the same logic that you would use to color the plot of a returned value
Alex
var Avg = sma(10);
//same logic as if coloring a returned value
if(your condition){//for example Avg.getValue(0)>Avg.getValue(-1)
setBarFgColor(Color.lime);
}else{
setBarFgColor(Color.red);
}
return Avg.getValue(0)+"";//the return is a string
Comment