R
randomx
Guest
hello all, wondering if this magic is possible
if condition1 the label should be red
if condition2 the label should orange
if condition3 the label should be green
i have the conditions but missing on how to do the color depending on the condition.
any help is appreciated. thank you
if condition1 the label should be red
if condition2 the label should orange
if condition3 the label should be green
i have the conditions but missing on how to do the color depending on the condition.
any help is appreciated. thank you
Code:
declare upper;
input length = 21;
input num_dev = 1;
input allow_neg = yes;
def rvd = RelativeVolumeStDev (length, num_dev, allow_neg);
def condition1 = rvd <= 0.5;
def condition2 = rvd > 0.51 and rvd <= 0.99;
def condition3 = rvd > 1;
##color coded would be nice depending on condition
AddLabel(yes, "vol delta: " + asPercent(rvd), Color.LIGHT_GRAY);