Support Board
Date/Time: Sun, 24 Nov 2024 05:47:43 +0000
[User Discussion] - Color bar based on alert
View Count: 634
[2023-10-27 18:12:58] |
User823328 - Posts: 27 |
Hello i use the volume study and i have setup an alert when volume exceed an amount = SG1 <=1000 This alert work well because i Heard thé sound whent condition are met I want now to color the alert bar on a différent color. For this i try to configure thé color bar based on alert study, but i have not succeded I have used thé guideline but i dont know what i do wrong but it dont work anybody here have already do this and Can help me please ? |
[2023-10-27 19:06:45] |
Sawtooth - Posts: 4118 |
Add the Color Bar Based On Alert Condition study. You must include the ID# of the Volume study: = ID1.SG1 <=1000 where ID1 is the Volume study; edit as needed. You could also use this: = V <=1000 |
[2023-10-27 20:13:58] |
User823328 - Posts: 27 |
Do you mean put this on the alert of the color bar based on alert condition ? Also on the guideline they say "Set the Input Data Input to the Subgraph in the study you want to custom color". But in the volume study it's not possible to configure the input data |
[2023-10-27 20:19:26] |
Sawtooth - Posts: 4118 |
Do you want to color the price bar, or the volume bar?
|
[2023-10-27 20:37:19] |
User823328 - Posts: 27 |
The volume bar. Do you know if the bar stay colored in the past ? I mean when i apply the study if i Scroll my chart on the past to backtest, the alert bar will be colored ? because it is mainly for this reason that I want to color them, to be able to spot them easily Date Time Of Last Edit: 2023-10-27 20:46:28
|
[2023-10-27 21:37:48] |
Sawtooth - Posts: 4118 |
if i Scroll my chart on the past to backtest, the alert bar will be colored ?
YesTo color the Volume bars: - Set the Chart Region to the same as the Volume study. - Set 'Output When Condition True' to Use Input Data. - Set 'Input Data' to Volume - Set the Draw Style to Bar - Use this formula on its Alerts tab: = V <=1000 - (Remove the formula in the Volume study.) Be sure that this color bar study is below the Volume study in the Studies to Graph list. |
[2023-10-28 08:44:43] |
User823328 - Posts: 27 |
Ok i have do all of that and it dont work I have tested with this formula = V >=1000 And also with = ID2.SG1 >=1000 I have this configuration on the color based on alert condition study: SETTINGS AND INPUTS Based on : ID:2 Chart région: 2 (same as volume study) Number of bars to calculate : 2000 Automatically clear from before 'number of bars to calculates: No Output when condition True : use input data Input data : Volume Custom output value when true : 0 Study subgraph référence value when true : ID2.SG1 Use-1 on false : No Draw style offset type : percentage Draw style percentage/tick offset : 0 Draw extension Line AT color bar value : none Draw extension Line above study subgraph : no Draw zéro value : no SUBGRAPH Color bar Draw style: bar, Line style: solide, with: 4 Extension Line ignore Sum of alerts ignore ALERTS = V >=1000 I dont know what i'm doing wrong |
[2023-10-28 14:20:35] |
Sawtooth - Posts: 4118 |
- Set the Based On to the <Main Price Graph> - Set the Study Subgraph Reference Value When True to ID0.SG1 All of the other settings are OK. The color bar study must be below the Volume study in the Studies to Graph list. Date Time Of Last Edit: 2023-10-28 14:23:14
|
[2023-10-28 16:45:28] |
User823328 - Posts: 27 |
Ok it's work well now thanks a lot for your help
|
[2024-06-18 23:17:29] |
jsandlan - Posts: 46 |
Where is the code for this study located?
|
[2024-06-19 14:09:19] |
John - SC Support - Posts: 36238 |
The "Color Bar Based on Alert Condition" source code is not available. Refer to the following: How to Build an Advanced Custom Study from Source Code: Source Code for Some Built in Studies Not Available For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: