def var1;
if barnumber() == 0 {
var1 = 1;
}else if var1[6] == 1 {
var1 = 2;
}else if var1[6] == 2 {
var1 = 3;
}else if var1[6] == 3 {
var1 = 1;
} else {
var1 = var1[1];}
plot var1plot = var1;
var1plot.setpaintingStrategy(paintingStrategy.VALUES_ABOVE);
var1plot.hide();
AddCloud(if var1plot == 1 or var1plot[-1] == 1 then high+10 else double.NEGATIVE_INFINITY, if var1plot == 1 or var1plot[-1] == 1 then low-10 else double.NEGATIVE_INFINITY, color.Cyan, color.Gray, yes);
AddCloud(if var1plot == 2 or var1plot[-1] == 2 then high+10 else double.NEGATIVE_INFINITY, if var1plot == 2 or var1plot[-1] == 2 then low-10 else double.NEGATIVE_INFINITY, color.Lime, color.Gray, yes);
AddCloud(if var1plot == 3 or var1plot[-1] == 3 then high+10 else double.NEGATIVE_INFINITY, if var1plot == 3 or var1plot[-1] == 3 then low-10 else double.NEGATIVE_INFINITY, color.Blue, color.Gray, yes);