Open Interest AFL-Help needed

Dawood

Active Member
#1
Dear Members,

I cannot get the previous day open interest correctly while scanning for my condition. Please help me how to correct this.

C1=( TimeFrameGetPrice( "C", inDaily, -1 ));
O1=(TimeFrameGetPrice( "Openinterest",inDaily, -1));
V1=(TimeFrameGetPrice( "V",inDaily,-1));

Buy= (C>C1 AND OI>O1 AND V>V1);

Filter= Buy;
AddColumn(O1,"pre openint");AddColumn(OI,"openinterest");
AddColumn(V1,"prevvol");AddColumn(V,"volume");
Thanks in advance.
Dawood.
 
Last edited:

KelvinHand

Well-Known Member
#2
Dear Members,

I cannot get the previous day open interest correctly while scanning for my condition. Please help me how to correct this.



Thanks in advance.
Dawood.
What do you means cannot get open interest correctly ?
Are you playing stock or playing futures ?
If you playing stock, no open interest.

Goto Menu Symbol -> Quote Editor-> check your Ticker Open Interest, see any value ?
 

Dawood

Active Member
#4
I tried in Exploration mode. Eod data was taken from bhavcopy, so it contains open interest also.It gives today's OI correctly but shows wrong when tried to compare the previous day's data.
 

Similar threads