Difference between revisions of "Symbol OpenInt"
Jump to navigation
Jump to search
(Created page with "Category:Data Information/General") |
|||
Line 1: | Line 1: | ||
+ | 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. | ||
+ | |||
+ | == Note == | ||
+ | * 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. | ||
+ | |||
+ | == Usage == | ||
+ | <syntaxhighlight>Symbol_OpenInt</syntaxhighlight> | ||
+ | |||
+ | == Example == | ||
+ | Plot the open interest of the current bar | ||
+ | <syntaxhighlight>Plot1(Symbol_OpenInt, "Open Interest");</syntaxhighlight> | ||
+ | |||
+ | Plot the open interest of the previous bar: | ||
+ | <syntaxhighlight>Plot1(Symbol_OpenInt of 1 Bar Ago, "Previous Bar's Open Interest");</syntaxhighlight> | ||
+ | |||
+ | Plot the open interest of two bars ago: | ||
+ | <syntaxhighlight>Plot1(Symbol_OpenInt[2], "Open Interest 2 bars ago");</syntaxhighlight> | ||
+ | |||
+ | |||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |
Latest revision as of 13:14, 1 March 2012
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.
Note
- 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.
Usage
Symbol_OpenInt
Example
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[2], "Open Interest 2 bars ago");