Technical Studies Reference
Color Bar Based On Above/Below Study
This study compares the selected Input Data Input (Open, High, Low, Last...) of the main price graph to the study Subgraph selected with the Study Reference Input. The main price graph is used when the Based On setting is set to <Main Price Graph>.
If the selected Input Data is above the referenced study Subgraph value at the same bar, then the entire main price graph bar is colored this study's Primary color (the first color button of the Color Bar Subgraph).
If the selected Input Data is below the referenced study Subgraph value at the same bar, then the entire main price graph bar is colored this study's Secondary color (the second color button of the Color Bar Subgraph).
If the values are equal, then the bar is not colored. For this study to work correctly, the Color Bar Subgraph Draw Style must be set to Color Bar.
- Input Data: The selected study Subgraph, set through the Study Reference Input is compared to this selected main price graph data.
- Study Reference: The Study Reference Input needs to be set to the specific study and the study Subgraph to compare with the Input Data.
- Mode: Set this to Color Above/Below to color bars where the Input Data is both above and below the selected study Subgraph. Set this to Color below to color bars where only the Below condition is met. Set this to Color above to color bars where only the Above condition is met.
- Output Input Data Values Instead of 1.0: Set this Input to Yes if you want to output the Input Data values. Set to No to output the value of 1.0. This Input does not have any effect if you use one of the Color Bar Draw Styles.
- Study Reference Displacement: Internally when the study is comparing the selected Subgraph of the study being referenced to the Input Data, it can look at displaced values of the Subgraph going forward or backward. Enter a positive value to displace it forward or a negative value to displace it backward.
*Last modified Friday, 21st April, 2017.