• Overview
  • Reviews (1)
  • Comments (35)
  • What's new

Open Interest for MT5

Open interest (current) is the total volume of effective contracts (futures, options) for which there have been no calculations yet. In MetaTrader 5 an open interest is displayed as "Open Interest" in "Details" tab of the "Market Watch" window, but it is not available as an indicator. This product displays the open interest as a candle chart for all trading instruments for which it transmitted to MetaTrader 5.


  1. Easy to use - it does not have any specific parameters.
  2. Color and levels of the indicator as well as the vertical scale are set via standard menu of the setup window.
  3. The indicator has an autonomous (independent from the indicator) on-line drive of minute history which is saved in a file.
  4. One trading instrument has only one on-line drive, though you can download several Open Interest indicators.
  5. The file is saved in a shared folder of all terminals, so accumulated history will be available in all terminals of MetaTrader 5.
  6. History files are sorted for each trading server and instrument. They are refilled until any terminal has at least one indicator on a corresponding contract or trading server.
  7. Accumulated history is available on any time frame.

Indicator Buffers

Indicator Buffer Number Contents
0 Open interest value when opening a bar/a candle of the main chart
1 Maximum value of open interest on a corresponding bar/candle of the main chart
2 Minimum value of open interest on a corresponding bar/candle of the main chart
3 Open interest value when closing a bar/a candle of the main chart
60 Index of open interest candle color

If for some reason server data are not available, the candle chart of the indicator might have empty spaces.


Standard version of the indicator has following rules of candles coloring:

  1. Yellow - Doji candle; open value is equal to close value.
  2. Red - Bear candle; open value exceeds close value.
  3. Blue - Bull candle; open value is less than close value.

Color of candles can be changed in the setting window of the indicator.

Interpretation of Open Interest

Open interest represents a volume of effective contracts for which there have been no calculations yet. Its change in any direction allows to define a level of activity of market participants. That is why open interest is so valuable as a forecasting instrument.

Usage of open interest is narrowly described by Larry Williams in his The Definitive Guide to Futures Trading and Alexander Elder in his Trading for a Living.

The product can be modified and amended. Visit What's new tab to know about changes.
Tbird 2020.02.12 08:24   

Check to make sure your broker provides OI data (right click on instrument in market watch, add OI column) before buying otherwise indicator will not populate.

Version 1.4 2015.05.27
Added export of gathered open interest history data to CSV text file. In this regard, four new indicator parameters have been added:
1. Action - action to be performed. There are two options so far: No - do nothing; Export - export data. 'No' is set by default.
2. File name - file name for saving exported data. If a default value is left, the name is generated automatically. If a file with that name already exists, the new data is not written and the appropriate entry appears in the log. The file is saved in the common directory of all client terminals \Terminal\Common\Files\Open Interest\Export\.
3. File format - select the format of a file for saving exported data. Two options are available so far: ASCII Text (*.csv) - ANSI (single-byte characters); Unicode Text (*.csv) - UNICODE (two-byte characters).
4. Recording format - data recording format. There are four options:
Only CloseOI - write open interest date, time and Close.
OpenOI, HighOI, LowOI, CloseOI - write open interest date, time, Open, High, Low and Close.
OpenOI, HighOI, LowOI, CloseOI, Volume - same as the previous one + actual trade symbol volume.
Open, High, Low, Close, CloseOI - trade symbol date, time, Open, High, Low, Close and open interest Close.

Data export is performed only once when the indicator starts. The saved data period corresponds to the selected chart timeframe.
Version 1.3 2015.05.15
1. Added automated accumulated history quality evaluation. History quality is displayed as % in the upper left corner after the indicator name. For example: Open Interest (98%). The higher the percentage is, the better the accumulated history is.
2. More detailed description of the indicator in the Common tab on the setting window.
Version 1.2 2015.05.05
1. Added 'Draw type' input parameter - indicator display method. Now, you can select one of the four open interest drawing methods:
Bars - bars;
Candles - candles (by default);
Histogram - histogram formed by Close values of the open interest on the appropriate candle/bar of the main chart;
Line - line formed by Close values of the open interest on the appropriate candle/bar of the main chart.
2. By default, the color scheme for bars is similar to the one for candles. The color scheme for the histogram and the line is as follows:
Blue - the current value exceeds the previous one;
Red - the current value is less than the previous one;
Yellow - the value has not changed.
Version 1.1 2015.04.23
Fixed an on-line drive error that occasionally prevented the first bar of accumulated history from being saved if the history file was empty.