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

Brain Monkey

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);
 
A

alphabeta

Member
@Brain Monkey hi great study .is is possible for you to make at the money open interest change in % actually i am not a codder so idont know how to do this thank you
 

Similar threads

Top