Support Board
Date/Time: Fri, 07 Feb 2025 15:13:30 +0000
[Programming Help] - Notification between studies
View Count: 632
[2020-06-07 09:55:27] |
backinblack - Posts: 36 |
Hi I have 2 custom studies, S1, S2. Currently, S1 does some calculations and draws an alert on the chart. I am looking to use this alert for S2 now. As in whenever there is a signal on S1, S2 should be notified of it. One way I think I can do it is store the indexes of alerts in S1 in a subgraph. Then use a persistent variable in S2 to point to the last updated index in the said subgraph in S1. That way, if S1 updates its subgraph, S2 can compare it against its persistent variable and detect that there is a new signal generated in S1. Is there another/better way to do it that i dont know about? Thanks -J |
[2020-06-07 10:04:21] |
Ackin - Posts: 1865 |
Is there another/better way to do it that i dont know about?
Another way ("better" I don't know)- get result from Summary window.... |
[2020-06-07 10:22:33] |
backinblack - Posts: 36 |
Thanks for the reply. I am looking to do it in ACSIL (Sorry should have mentioned in my original post)
|
[2020-06-07 10:51:48] |
Ackin - Posts: 1865 |
Thanks for the reply. I am looking to do it in ACSIL
I also wrote about ACSIL Date Time Of Last Edit: 2020-06-07 10:55:30
|
[2020-06-07 10:53:33] |
Ackin - Posts: 1865 |
Look: sc.GetStudySummaryCellAsDouble() sc.GetStudySummaryCellAsString() Date Time Of Last Edit: 2020-06-07 10:56:27
|
[2020-06-07 20:13:19] |
ForgivingComputers.com - Posts: 996 |
s there another/better way to do it that i dont know about?
You can get and set a persistent variable from another chart study: sc.GetPersistentFloatFromChartStudy() |
To post a message in this thread, you need to log in with your Sierra Chart account: