Home >> (Table of Contents) Studies and Indicators >> Technical Studies Reference >> Study Subgraph Add
Technical Studies Reference
- Technical Studies Reference
- Common Study Inputs (Opens a new page)
- Using Studies (Opens a new page)
Study Subgraph Add
This study Adds a specified Amount to Add to the selected study Subgraph. To select the study to use, set the Based On study setting to that study and set the Input Data Input to the specific study Subgraph.
Let \(X\) be a random variable denoting the Input Data Input, and let \(X_t\) be the value of the Input Data at Index \(t\). Let the Amount to Add Input be denoted as \(k\). Then the displayed value of Study Subgraph Add at Index \(t\) is given by \(X_t + k\).
If the Draw Zeros Input is set to No, then Study Subgraph Add is not drawn at Index \(t\) if \(X_t = 0\). Otherwise, it is drawn at Index \(t\) even if \(X_t = 0\).
If the Add to Zero Values in Based On Study is set to No, then \(b\) is not added to the value of the selected study Subgraph at Index \(t\) if \(X_t = 0\). Otherwise, it is added at Index \(t\) even if \(X_t = 0\).
More than likely you will want to display this study in the same chart region as the study that it is based on. To do this, set the Chart Region setting in the Study Settings window for this study to the same Chart Region as the study you have based it on using the Based On setting. You can also hide the study you have based this study on by opening the Study Settings window for that other study and enabling the Hide Study option.
Inputs
- Input Data
- Amount to Add: This Input sets the amount to add to the selected study Subgraph.
- Draw Zeros: When this Input is set to Yes, then zero values from the study Subgraph will be drawn. Otherwise, they will not be.
- Add to Zero Values in Based On Study: When this input is set to Yes, the default, then the Amount to Add is always added to the Input Data of the Based On study. When this is set to No, then at chart columns where the Input Data from the Based On study is 0, then the addition does not occur.
*Last modified Monday, 03rd October, 2022.