Processing math: 100%
Login Page - Create Account

Technical Studies Reference


On Balance Open Interest - Short Term


Description

This study calculates and displays the On Balance Open Interest over a specific length of bars.

Let Ct be the value of the Close Price at Index t. We denote the Signed Open Interest at Index t as OI(±)t, and we initialize this quantity to zero (that is, OI(±)0=0). We compute the Signed Open Interest for t>0 in terms of the Open Interest as follows.

OI(±)t={OItCt>Ct10Ct=Ct1OItCt<Ct1

Let the Length Input be denoted as n. We denote the On Balance Open Interest - Short Term for this Input at Index t as OI(OB)t(n), and we describe the calculation of this quantity below.

For 0t<n, OI(OB)t(n) is calculated internally as follows. These values are not displayed as output.

OI(OB)t(n)={0t=0OI(OB)t1(n)+OI(±)t0<t<n

The above formula is equivalent to OI(OB)t(n)=OI(OB)t, where OI(OB)t is the On Balance Open Interest. That is, for 0t<n, the On Balance Open Interest - Short Term is equivalent to the ordinary On Balance Open Interest.

For tn, OI(OB)t(n) is calculated as follows. These values are displayed as output.

OI(OB)t(n)=OI(OB)t1(n)+OI(±)tOI(±)tn

Inputs

Spreadsheet

The spreadsheet below contains the formulas for this study in Spreadsheet format. Save this Spreadsheet to the Data Files Folder.

Open it through File >> Open Spreadsheet.

On_Balance_Open_Interest_Short_-_Term.126.scss


*Last modified Friday, 24th January, 2025.