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

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?