Login Page - Create Account

Technical Studies Reference


Study Subgraphs Add

This study calculates and displays the Sum 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 Add at Index \(t\) is given by \(X^{(1)}_t + X^{(2)}_t\). If \(k \neq 0\), then the displayed value of Study Subgraphs Add is given by \(X^{(1)}_t + X^{(2)}_0\) for \(t \leq k\), and \(X^{(1)}_t + X^{(2)}_{t - k}\) for \(t > k\).

If the Draw Zeros Input is set to No, then Study Subgraphs Add is not drawn at Index \(t\) if its value is zero. Otherwise, it is drawn at Index \(t\) even if its value is zero.

If the Perform Add With Zero Values Input is set to No, then the value of Study Subgraphs Add is replaced with \(0\) at Index \(t\) if either term in the sum is zero. Otherwise, the two terms are added even if either of them is zero.

Inputs

  • Input Study 1: Use this Input to select the study and study Subgraph for Study Subgraph 1 used in the sum calculation.
  • Input Study 2: Use this Input to select the study and study Subgraph for Study Subgraph 2 used in the sum 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.
  • Perform Add With Zero Values: When this input is set to Yes, the default, then Input Study 1 and Input Study 2 of the Based On studies are always added. When this is set to No, then at chart columns where the either Input Study 1 or Input Study 2 from the Based On studies is 0, then the addition does not occur and a zero value is used instead.

*Last modified Monday, 03rd October, 2022.