OpenInt: Difference between revisions
From MultiCharts
no edit summary
(Created page with "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 tic...") |
Dave Masalov (talk | contribs) No edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Returns the open interest of the current bar | Returns the open interest of the current bar for time-based charts with resolutions of 1 day or more. | ||
For tick and volume-based charts and for time-based charts with resolutions of 24 hours or less, OpenInt returns: | |||
* The volume traded on [[DownTicks|Down ticks]] will be returned if '''Build Volume On''' is set to '''Trade Volume''', or | |||
* The number of [[DownTicks|Down ticks]] in the current bar will be returned if '''Build Volume On''' is set to '''Tick Count''' | |||
Please note that 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. | == Usage == | ||
<syntaxhighlight>OpenInt</syntaxhighlight> | |||
[[ | == Notes == | ||
* OpenInt is supported for time-based charts with resolutions of 1 day or more. | |||
== | * Please note that most [[:Category:Built-in_Data_Sources|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 limited by the [[MaxBarsBack]] setting. | |||
== Examples == | |||
Plot the open interest of the current bar: | Plot the open interest of the current bar: | ||
<syntaxhighlight>Plot1(OpenInt,"Open interest");</syntaxhighlight> | <syntaxhighlight>Plot1(OpenInt, "Open interest");</syntaxhighlight> | ||
Plot the open interest of the previous bar: | Plot the open interest of the previous bar: | ||
<syntaxhighlight>Plot1(OpenInt of 1 Bar Ago,"Previous bar's open interest");</syntaxhighlight> | <syntaxhighlight>Plot1(OpenInt of 1 Bar Ago, "Previous bar's open interest");</syntaxhighlight> | ||
Plot the open interest of two bars ago: | Plot the open interest of two bars ago: | ||
<syntaxhighlight>Plot1(OpenInt[2],"Open interest 2 bars ago");</syntaxhighlight> | <syntaxhighlight>Plot1(OpenInt[2], "Open interest 2 bars ago");</syntaxhighlight> | ||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |