Home >> (Table of Contents) Studies and Indicators >> Technical Studies Reference >> On Balance Open Interest - Short Term
Technical Studies Reference
- Technical Studies Reference
- Common Study Inputs (Opens a new page)
- Using Studies (Opens a new page)
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>Ct−10Ct=Ct−1−OItCt<Ct−1Let 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 0≤t<n, OI(OB)t(n) is calculated internally as follows. These values are not displayed as output.
OI(OB)t(n)={0t=0OI(OB)t−1(n)+OI(±)t0<t<nThe 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 0≤t<n, the On Balance Open Interest - Short Term is equivalent to the ordinary On Balance Open Interest.
For t≥n, OI(OB)t(n) is calculated as follows. These values are displayed as output.
OI(OB)t(n)=OI(OB)t−1(n)+OI(±)t−OI(±)t−nInputs
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.
*Last modified Friday, 24th January, 2025.