Technical Studies Reference
Study Subgraph Subtract
This study Subtracts a specified Amount to Subtract 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 Subtract Input be denoted as \(k\). Then the displayed value of Study Subgraph Subtract at Index \(t\) is given by \(X_t - k\).
If the Draw Zeros Input is set to No, then Study Subgraph Subtract is not drawn at Index \(t\) if \(X_t = 0\). Otherwise, it is drawn at Index \(t\) even if \(X_t = 0\).
If the Subtract From 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.
- Input Data
- Amount to Subtract: This Input sets the amount to subtract from 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 Friday, 08th March, 2019.