Support Board
Date/Time: Fri, 07 Feb 2025 17:04:50 +0000
[Programming Help] - Graphs like triangle or rectangle based on alert condition
View Count: 1313
[2020-10-02 18:03:05] |
User361939 - Posts: 167 |
Hello, Which study should i use to get similar results like study "color bar based on alert condition" but instead coloring bar computer will put e.g triangle up/down under/over candle? When I changed Draw style in "color bar based on alert condition" study chart simply doesn't draw e.g triangle. Best Regards |
[2020-10-02 18:09:14] |
Ackin - Posts: 1865 |
Alerts tab (its study settings) In this case, example, the formula is: =C>O more: Output When Condition Is True Color Bar Based on Alert Condition: Output When Condition Is True Attached image Date Time Of Last Edit: 2020-10-02 18:32:59
|
colorbar sample.png / V - Attached On 2020-10-02 18:09:08 UTC - Size: 81.49 KB - 315 views |
[2020-10-06 17:03:37] |
User361939 - Posts: 167 |
Hello, TY. this works. Another question, how to create e.g triangle for "alert bullish" that appears over candle and vice-versa? There is Draw style "Value on lor/high" but there is no triangle up/down on low/high. How can i create this? |
[2020-10-06 17:14:06] |
Ackin - Posts: 1865 |
User361939) TY. this works.
;)Another question, how to create e.g triangle for "alert bullish" that appears over candle and vice-versa? There is Draw style "Value on lor/high" but there is no triangle up/down on low/high. How can i create this?
I'm not sure I understand you correctly. The picture would be better with the drawing what you need.
Date Time Of Last Edit: 2020-10-06 17:14:49
|
[2020-10-06 17:34:55] |
Ackin - Posts: 1865 |
If you want to have an indication at the top or bottom depending on the type of bar and other conditions, you must use two studies and each set a different output and a different alert. You should read this to understand what the study output is. Output When Condition Is True This Input only applies to the Color Bar Based on Alert Condition study. When an Alert Condition formula is TRUE at a bar/column in the chart, the corresponding study Subgraph element of this study which is used to color a bar is set to 1.0. This causes the bar to be colored when using one of the Color Bar Draw Styles. When you set this Input to Use Input Data, then the study Subgraph element for this study at the bar/column where the Alert Condition formula is TRUE, will be set to the value of the Input Data Input at that bar. It is necessary to use Use Input Data when you want to use a Draw Style other than the boolean Draw Styles such as Color Bar. The other styles require an actual chart value to vertically position them on the chart. Setting this to Use Input Data, also allows you to color existing studies when your Alert Condition formula is TRUE. This requires that the Color Bar Based on Alert Condition study be Based On the study that you want to color. Color Bar Based on Alert Condition: Output When Condition Is True Date Time Of Last Edit: 2020-10-06 17:36:57
|
cccolorbar.png / V - Attached On 2020-10-06 17:34:41 UTC - Size: 82.85 KB - 281 views |
[2020-11-11 12:58:25] |
User361939 - Posts: 167 |
Ok. TY this works :)
|
To post a message in this thread, you need to log in with your Sierra Chart account: