I'm making a lable that shows change in open interest from the day before

Brain Monkey

New member
Ok so I am making a label that shows the overall change in open interest from the day before. I know open interest isn't reported until the following day and that is fine for this. This is what I came up with. Can someone please check my work or am I way off on this.
Code:
def OI = OpenInterest();
plot R = ((OI - OI[1]) - 1);
addlabel(yes, "Chg in OI:" + R, color.light_GRAY);
 

Similar threads

Top