Support Board
Date/Time: Fri, 07 Feb 2025 14:54:42 +0000
Can Study ID's Have an On/Off or True/False State?
View Count: 2440
[2015-01-08 17:57:25] |
cmet - Posts: 605 |
I'm trying to reference an alert condition ID within another alert condition - but on a different chart -using the Color Bar Based On Alert Condition study. However, I can't seem to figure out the correct syntax to state when the alert condition is present. I've tried ID:#.SG#=1 and ID:#.SG#=TRUE But they don't seem to work. Is there a way to do this? Date Time Of Last Edit: 2015-01-08 19:06:04
|
[2015-01-08 18:56:54] |
Sawtooth - Posts: 4173 |
The correct syntax is =ID#.SG# The most likely use would be, e.g., =ID1.SG1>0 |
[2015-01-08 19:06:33] |
|
It depends on the values of the study subgraph being referenced.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2015-01-08 19:10:04] |
cmet - Posts: 605 |
Thanks, I know the basic use (I think that's what you're referring to). Forgot to mention that I'm trying to reference this from a different chart. The syntax above is interchangeable with the one you posted (if I understand you correctly). Here's a more detailed version of what I'm trying to do: Say I have a Color Bar Based on Alert Condition. It has an ID of 1. The syntax for that condition is say, a higher high with an indicator (ID2) showing a lower low: =AND(H > H[-1], ID:2.SG1 < ID:2[-1]) Now I want to create a new alert that uses the above alert but in a different chart. For instance I have the above alert on a 5 minute chart but I want to add a new alert to a 1 minute chart. For example, new alert is an indicator higher than one period ago: =ID:4.SG1 > ID:4.SG1[-1] So, what I want to do now is make sure that the both the top alert and the new alert conditions are true. I thought it would be something like this: =AND (ID:2.SG1 = TRUE, ID:4.SG1 > ID:4.SG1[-1]) Is it possible to do this? Date Time Of Last Edit: 2015-01-08 19:11:08
|
[2015-01-08 19:25:06] |
Sawtooth - Posts: 4173 |
It's not possible to directly do what you want because: -The Color Bar Based On Alert Condition does not output any value when TRUE. -You cannot reference the OHLC nor an indicator on another chart. Workarounds are these: -Use one or more of the Overlay studies -Use inter-sheet references of the same-named spreadsheet study on both charts. |
[2015-01-08 20:40:31] |
|
-The Color Bar Based On Alert Condition does not output any value when TRUE. -You cannot reference the OHLC nor an indicator on another chart. The color bar Based on Alert Condition does output values when TRUE. You can see them with the Chart Values tool: https://www.sierrachart.com/index.php?page=doc/doc_Tools.html#ChartValues This is the method to see what values a study outputs and determine how the formula should be written to use the data. The method for referencing the main price graph or a study on another chart is by using the Study/Price Overlay study to put it on the same chart. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2015-01-08 20:40:54
|
[2015-01-08 21:11:43] |
cmet - Posts: 605 |
SCE, Can you explain how I might accomplish what I'm after in my post above? |
[2015-01-08 21:27:09] |
Sawtooth - Posts: 4173 |
The color bar Based on Alert Condition does output values when TRUE.
I stand corrected. However, it does not output any values to a spreadsheet study. |
[2015-01-09 01:48:43] |
cmet - Posts: 605 |
So can you please help understand if and how I can do the following. 1. I have a chart with the Point and Figure bar study on it. 2. I have a Color Bars Based on Alert Condition study on that chart which colors the bars based on a formula. 3. I have a 2 tick Range Bar chart where I want the bars to be colored based on the Color Bars study for the PNF chart. This is a crude Photoshop mockup but shows what I'm looking for: http://s4.postimg.org/ibz73yfx9/colorbars.jpg |
[2015-01-09 04:11:54] |
Sawtooth - Posts: 4173 |
This might possible, but I don't think there is a general solution that would apply to any configuration. IOW, I would need more specific details.
|
[2015-01-13 15:03:18] |
cmet - Posts: 605 |
SC Engineering, Can you please provide some guidance as to whether or not what is outlined 2 posts above can be accomplished? Can you also clarify as to the correct usage of: =True =1 For Study ID alert states? When can they be used? When not? In my experience, they have no effect whatsoever in alert syntax when referenced. |
[2015-01-13 22:19:05] |
|
We see no reason why what you want to do is not possible but you need to work out the details. Study Subgraph values never have the value of TRUE. So you never want to compare to TRUE. You will always want to compare to a number. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2020-05-20 15:59:06] |
mittalpa - Posts: 28 |
Try using the id of "Sum of Alerts" of Alert study. i.e. compare the "Sum of Alerts" of current bar vs previous bar. Recently discovered, whenever alert conditions become true for a bar, the sum of alerts increase by 1. |
To post a message in this thread, you need to log in with your Sierra Chart account: