Support Board
Date/Time: Tue, 04 Feb 2025 16:47:07 +0000
[Programming Help] - Study: Color Bar Based on Alert Condition
View Count: 758
[2020-02-01 03:18:41] |
User425312 - Posts: 1 |
Seeking to add a feature to the "Color Bar Based on Alert Condition": Would like to to use draw style "point on high or low", and have an adjustable offset from the bar its alerted on. The use in this function, for me, would be to have 2 points on the high or low of the same bar with different offsets indicating a hierarchy. My intent was to pull the "Arrow Offset Percentage" input code from "MACD Crossover System" CPP file into the "Color Bar Based on Alert Condition" CPP file, however, I have discovered this file is inaccessible. Would you kindly point me in the right direction, or let me down gently if my only option is to attempt to develop my own Color Bar Based on Alert Condition file from scratch? Thank you |
[2020-02-01 23:04:59] |
Sawtooth - Posts: 4166 |
You can use the Spreadsheet Formula study, with a formula like this in the Formula field: =IF(Condition1,H+TICKSIZE*1,IF(Condition2,H+TICKSIZE*5,0)) Set 'Draw Zero Values' to No. You can use more IF statements and/or use another instance of the study. |
To post a message in this thread, you need to log in with your Sierra Chart account: