Support Board
Date/Time: Sat, 22 Feb 2025 08:29:50 +0000
Post From: Setting alert type based on condition
[2021-01-19 18:20:58] |
User811394 - Posts: 1 |
Hello, I'm trying to write my first alert in SC but I'm having some trouble. Wondering if anyone here can provide some assistance? The basic pseudo code is below, using some of the syntax that SC uses: If((ID1.SG1[0] - ID1.SG[-1] <= 200) AND (ID2.SG1 > ID3.SG1) THEN SoundAlert1 OR If((ID1.SG1[0] - ID1.SG[-1] >= 200) AND (ID3.SG1 > ID2.SG1) THEN SoundAlert2 I am not clear on whether it is even possible to use different types of alerts with one condition formula and also the proper format/syntax. I've tried going through this link already: Study/Chart Alerts And Scanning: Alert Formula Examples |