OpenInterest
OpenInterest shows how open interest changes — the number of open positions in a futures or other derivative contract. Open interest rising together with the price points to new participants entering; falling open interest points to positions being closed. The indicator works for MOEX futures.
How it is calculated
The terminal takes the open interest that the connection sends with trades or bar history and keeps the last value in each bar. If the connection does not send open interest (for example, for stocks), the indicator stays empty.
What the indicator shows is set by the Anchor period parameter:
- Bar — the change of open interest over the bar: the value at the bar close minus the value at the previous bar’s close;
- Day, Week or Month — the change since the start of the period: the value at the bar close minus the value at the close of the last bar before the start of the day, week (starting Monday) or month;
- Value — open interest itself, with nothing subtracted.
The very first bar with data is not drawn: it has no previous bar to compare with. Bars without open interest data also stay empty.
The View parameter selects how it is drawn:
- Columns — a column up from zero in the Up color if the value is positive and down in the Down color if it is negative;
- Line — a line with the color and width from Line color and Line width.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Anchor period | The period for the change: Bar, Day, Week, Month or Value (open interest itself). | Bar |
| View | How to draw: Columns or Line. | Columns |
Style
| Parameter | Description | Default |
|---|---|---|
| Up color | Color of columns with a positive value. | Green |
| Down color | Color of columns with a negative value. | Red |
| Line color | Line color in the Line view. | Orange |
| Line width | Line width in the Line view. | 1 |
You cannot place an alert line in the OpenInterest area.
How to add an indicator to the chart is described in Adding an indicator; how to change its parameters, on the Indicator manager page.