Support Board
Date/Time: Wed, 12 Mar 2025 11:35:36 +0000
study alert
View Count: 173
[2024-12-24 15:30:42] |
Boris Libman - Posts: 63 |
I'm running a custom study that acts like a static moving average. The study has a bull (long) and bear (short) setting that it "flips" between depending on sensitivity of the inputs. I'm looking to be notified when it flips from one to other. What would I need to enter in the "Alerts" tab of the study?
|
Private File Attachment Deleted. |
[2024-12-26 15:30:43] |
John - SC Support - Posts: 38598 |
There is not enough information for us to answer this. In particular, if the subgraphs are only of a certain value at some bars, and are otherwise zero, then you would have to create "persistent" subgraphs to keep that information to check when there is a flip. Since this is a custom study, it would be easier to create the alert within that study. Refer to the following: ACSIL Interface Members - Functions: sc.SetAlert() For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-12-26 15:58:29] |
Boris Libman - Posts: 63 |
the values of the study are NEVER zero, either a bull signal with a price attached or bear. is there a way to create alert when the signal flips without going into the study (it is a 3rd party study that I did not create and would prefer not to dabble inside the study itself)
|
[2024-12-26 17:39:34] |
John - SC Support - Posts: 38598 |
It does not make sense that the values are never zero. How would you know when you have a signal if they were not zero previously? We are not talking about when the signal is true, we are referring to the subgraphs where the signal is not true - those should be zeros. As such, it complicates how to create an alert, as you would need to know if the last signal you had was a Bull or Bear and then check to see if there is the opposite item now occurring on the current bar.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-12-26 18:08:09] |
Boris Libman - Posts: 63 |
ok..so how would I create an alert if current bar signal is different than prior bar signal?
|
[2024-12-26 19:33:57] |
John - SC Support - Posts: 38598 |
The easiest way is by using the Spreadsheet Study to determine which signal has been most recent and then set some kind of value that you can use from that. For instance, you could use the GETCORRESPONDINGMATCH() in conjunction with ROW() to find the most recent rows for each of signals and then use that to know when there has been a change. The following example gives the ROW where the first value of 1 is found in column AC from rows 1 to 100. The output is in column Y: =ROW(GETCORRESPONDINGMATCH(AC$3:AC$100, 1, 0, 0, 0, Y$3:Y$100, 0)) 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: