Profile Picture

Open Interest

Posted By ywlee 3 Years Ago
Message
Posted Friday March 07 2014
Hi

How do I call the Open interest data that is stored?

I tried calling it with:

Openinterest.LookBack(0) but it does not work.

Thanks!
phg
Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)
Posted Friday March 07 2014
Try
Bars.LookBack(3).OpenInterest
or
Bars.Current.OpenInterest

-Pete

See also Yahoo group about applying RE.

Posted Sunday March 09 2014
Thanks Pete!
Posted Sunday March 16 2014
Hi how do I display Open Interest in the chart pane?
phg
Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)Supreme Being (46,875 reputation)
Posted Monday March 17 2014
Search this forum on 'open interest'.

-Pete

See also Yahoo group about applying RE.

Posted Monday March 17 2014
I have this code which works when there is no system but just graphs. But when I put this into code together with a system, I get a OpenInterest:NaN on the chart.

OpenInterest = new UserSeries();
OpenInterest.ChartSettings.ChartPaneName = "OpenInterest";
OpenInterest.ChartSettings.Color = Color.Red;
OpenInterest.ChartSettings.DisplayName = "Open Interest";
Posted Monday March 17 2014
Figured it out.

Forgot to put the following into the NewBar() area:

double OI = Bars.Current.OpenInterest;


if (Bars.Count > 0)
{
OpenInterest.Current = OI;
}


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems