Working with this custom watchlist column as a "confirmation stack"
I'm trying to keep my x plot to be able to sort the column numerically.
I can't figure out how to to add a color-coded "U" or "D" in front of the x plot without
disabling numerical sorting. What am I missing here?
How can I use AddLabel without affecting Plot X?
Thanks all
I'm trying to keep my x plot to be able to sort the column numerically.
I can't figure out how to to add a color-coded "U" or "D" in front of the x plot without
disabling numerical sorting. What am I missing here?
How can I use AddLabel without affecting Plot X?
Code:
plot x = Round(100 * ((close/ open) - 1), 1);
addLabel(yes, if open>close[1] then x + "U" else x + "D");
x.AssignValueColor( if x < 0 then Color.ORANGE else Color.cyan);
AssignBackgroundColor(if close>open and close[1]>open[1] then color.blue else if close<open and close[1]<open[1] then color.red else color.black);
Thanks all
Last edited: