contactnovuspc
New member
Im trying to create a custom column that changes color based on the value. If current value is >= previous value then the background color is Green, else it should be Gray. Doesn't seem to work since i can see value fluctuate up and down but the background color does not change. Could someone please take a look to see if I miss anything? Thank you.
plot TestTest=Round(AbsValue((Delta()Volume())*OptionPrice()).1, 0);
AssignBackgroundColor(if Testtest >= Testtest[1] then color.GREEN else color.GRAY);
TestTest.SetDefaultColor(color.black);
plot TestTest=Round(AbsValue((Delta()Volume())*OptionPrice()).1, 0);
AssignBackgroundColor(if Testtest >= Testtest[1] then color.GREEN else color.GRAY);
TestTest.SetDefaultColor(color.black);