Support Board
Date/Time: Fri, 31 Oct 2025 06:51:44 +0000
[Programming Help] - Swing Hi Lo not emiting alert signals
View Count: 1576
| [2018-02-16 06:47:27] | 
| User360283 - Posts: 524 | 
| I have alert code "=or(sg1<>0,sg2<>0)" No errors No signla is generated Help please Thanks | 
| [2018-02-16 07:23:38] | 
|  | 
| Your formula needs to reference prior bars because the signals from this study do not exist on the last bar. Reference: Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the 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: 2018-02-16 07:24:07  | 
| [2018-02-17 16:43:52] | 
| User360283 - Posts: 524 | 
| Still not emitting Alert code is now : =or(sg1[-1]<>0,sg2[-1]<>0) Thanks | 
| [2018-02-18 01:04:27] | 
|  | 
| Based on the study data is that formula logical and would it work? Only you can determine that. 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 | 
| [2018-02-18 02:58:02] | 
| Sawtooth - Posts: 4281 | 
| =OR(SG1[-5]<>0,SG2[-5]<>0) The negative bracketed value needs to match the positive Length setting in the Swing High and Low study. The above formula works for a Length of 5. Keep in mind that this study 'repaints' so you won't get an alert until the arrow appears which in this example is 5 bars later. Date Time Of Last Edit: 2018-02-18 14:13:01  | 
| [2018-02-18 09:55:02] | 
| User360283 - Posts: 524 | 
| thanks Tom.  Do you have any new stuff?   what is you web site? | 
| [2018-02-18 14:13:23] | 
| Sawtooth - Posts: 4281 | 
| sawtoothtrade.com | 
To post a message in this thread, you need to log in with your Sierra Chart account:
