Need Help: How to plot Open Interest as candle sticks

#11
hey just i created this alf...hope it helps...

here is the code:

//==========================================

oo=IIf(DateNum()>Ref(DateNum(),-1),oi,Ref(oi,-1));
hh=IIf(Oi>Ref(oi,-1),oi,Ref(oi,-1));

ll=IIf(oi<Ref(oi,-1),oi,Ref(oi,-1));

cc=oi;


SetBarFillColor(IIf(Cc>Oo, colorGreen, colorRed));// inside coor


col=IIf(Cc>Oo, colorDarkGreen, colorDarkRed);


PlotOHLC(oo,hh,ll,cc,"OOIII",col,style=styleCandle);

//===================================================
 

Attachments

Similar threads