Returns the open interest of the current bar for tick and volume-based charts, and for time-based charts with resolutions of 24 hours or less:
- the volume traded on Down ticks will be returned if Build Volume On is set to Trade Volume
- the number of Down ticks in the current bar will be returned if Build Volume On is set to Tick Count OpenInt is supported for time-based charts with resolutions of 1 day or more.
- Most data feeds provide only a limited history of volume and tick data; storing real-time feed data will ensure the availability of historical volume and tick data.
- The range of returned values is not limited by the MaxBarsBack setting. This keyword can return the value of any bar of the data series.
Plot the open interest of the current bar
Plot1(Symbol_OpenInt, "Open Interest");
Plot the open interest of the previous bar:
Plot1(Symbol_OpenInt of 1 Bar Ago, "Previous Bar's Open Interest");
Plot the open interest of two bars ago:
Plot1(Symbol_OpenInt, "Open Interest 2 bars ago");