Dear everyone, I'm stuck with coloring.
Something goes wrong with my script as follows
def MB = MidBand;
MB.DefineColor("Up", CreateColor(0, 0, 204)); #The color is Blue-ish
MB.DefineColor("Down", CreateColor(255, 0, 0)); #The color is Orange-ish
MB.AssignValueColor( if MB > MB [1] and MB == MB[Z] then MB.Color("Up") else if MB < MB[Z] and MB ==MB[Z] then MB.Color("Down") else double.nan);
I want MB=MB[1] to stay Blue after MB > MB[1] until it hits MB < MB[1]
I want MB=MB[1] to say Orange after MB < MB[1] until it hits MB > MB[1]
MB.AssingValueColor → it's got errors.
Can anyone please help me? Thanks in advance!!!
Something goes wrong with my script as follows
def MB = MidBand;
MB.DefineColor("Up", CreateColor(0, 0, 204)); #The color is Blue-ish
MB.DefineColor("Down", CreateColor(255, 0, 0)); #The color is Orange-ish
MB.AssignValueColor( if MB > MB [1] and MB == MB[Z] then MB.Color("Up") else if MB < MB[Z] and MB ==MB[Z] then MB.Color("Down") else double.nan);
I want MB=MB[1] to stay Blue after MB > MB[1] until it hits MB < MB[1]
I want MB=MB[1] to say Orange after MB < MB[1] until it hits MB > MB[1]
MB.AssingValueColor → it's got errors.
Can anyone please help me? Thanks in advance!!!