Support Board
Date/Time: Wed, 12 Mar 2025 21:22:57 +0000
How to create sound alert for Moving Average Crossover?
View Count: 1540
[2022-05-25 16:25:39] |
Lilylaw - Posts: 10 |
Dear Sierra Chart, I have tried to search in the support board on How to create sound alert for Moving Average Crossover? However, i cannot find the formula to place on the "Alert Condition". My requirement is to have a sound alert when the 2 moving averages crossover with the studies "Moving average crossover". Please advise if there's anywhere to have the formula to be placed in "Alert Condition" under the studies "Moving average crossover". My aim is to have the sound alert or email alert when the 2 moving averages crossover. Or please direct me to someone or somewhere who has the answer. Thanks very much. |
[2022-05-25 16:56:27] |
John - SC Support - Posts: 38621 |
To get an alert on the Moving Average Crossover study, you would just need to check SG3 or SG4 of the study to see if it is non-zero. For example, if you want an alert regardless of whether it crosses from above or below, you could use the following Alert Condition: =OR(ID1.SG3, ID1.SG4) Where ID1 is the ID of the Moving Average Crossover study. Refer to the following for the rest of the information regarding setting up Alerts to make a sound: General Settings Window: Alerts (Global Settings >> General Settings) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-05-26 07:09:24] |
Lilylaw - Posts: 10 |
Dear John, Thank you for your reply. Well noted on the below alert condition formula to be placed under the "Moving Averages Crossover" study. =OR(ID1.SG3, ID1.SG4) 1) Since my ID for the MA crossover is ID:11, should i change the formula to =OR(ID11.SG3, ID11.SG4)? 2) Could you please advise how to check the SG3 and SG4, i am not sure what is that and not sure where to find them. Thanks to advise. |
[2022-05-26 14:40:48] |
John - SC Support - Posts: 38621 |
1. Yes, you would need to change the ID1 to ID11 in your case. 2. SG3 is Subgraph 3. Subgraphs are the containers that hold the data for a study. On the Moving Average Crossover there is Subgraph 3 (SG3), which is used to place an Arrow Up when there is a cross from below, and Subgraph 4 (SG4) which is used to place an arrow down when there is a cross from above. In Sierra Chart a zero (0) is a false indicator and any non-zero value (1, 1.4954, 600437.5, etc.) is a true indicator. Therefore when SG3 in the Moving Averages Crossover indicates there is a crossover at the bar the value is non-zero so we can just check against that and not worry about the actual value. The point being that if you want separate alerts, you would need to setup 2 different alerts where each one would be a check against the individual subgraph, like the following: =ID11.SG3 Refer to the following section of the Alerts documentation: Study/Chart Alerts And Scanning: Referencing Study Subgraphs For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-05-27 03:48:24] |
Lilylaw - Posts: 10 |
Thank you very much. I understand it now and it works. Have a great day John! |
To post a message in this thread, you need to log in with your Sierra Chart account: