Home >> (Table of Contents) Studies and Indicators >> Technical Studies Reference >> Study Subgraphs Multiply
Technical Studies Reference
- Technical Studies Reference
- Common Study Inputs (Opens a new page)
- Using Studies (Opens a new page)
Study Subgraphs Multiply
This study calculates and displays the Product of two study Subgraphs. These can be part of different studies on the chart.
Let \(X^{(1)}\) and \(X^{(2)}\) be random variables respectively denoting the Input Study 1 and Input Study 2 Inputs, and let \(X^{(1)}_t\) and \(X^{(2)}_t\) be their respective values at Index \(t\). Let the Input Study 2 Subgraph Offset be denoted as \(k\).
If \(k = 0\), then the displayed value of Study Subgraphs Multiply at Index \(t\) is given by \(X^{(1)}_t \cdot X^{(2)}_t\). If \(k \neq 0\), then the displayed value of Study Subgraphs Multiply is given by \(X^{(1)}_t \cdot X^{(2)}_0\) for \(t \leq k\), and \(X^{(1)}_t \cdot X^{(2)}_{t - k}\) for \(t > k\).
If the Draw Zeros Input is set to No, then Study Subgraphs Multiply is not drawn at Index \(t\) if its value is zero. Otherwise, it is drawn at Index \(t\) even if its value is zero.
Inputs
- Input Study 1: Use this Input to select the study and study Subgraph for Study Subgraph 1 used in the product calculation.
- Input Study 2: Use this Input to select the study and study Subgraph for Study Subgraph 2 used in the product calculation.
- Study 2 Subgraph Offset: This Input specifies the offset, in chart bars, from the current bar when determining the value for Study Subgraph 2.
- Draw Zeros: When this Input is set to Yes, then zero values from the study Subgraph will be drawn. Otherwise, they will not be.
*Last modified Monday, 03rd October, 2022.