Support Board
Date/Time: Fri, 10 Jan 2025 20:07:14 +0000
Setting up alerts
View Count: 1307
[2016-10-07 15:55:21] |
User866531 - Posts: 14 |
Hi, I'm struggling to setup alerts correctly. So far I have used the following formula for Pivot levels and other horizontal lines and it has worked correctly. =OR(CROSSOVER(SG9, H) , CROSSOVER(SG9, L)) But when I try to add it into a time based alert like =AND((Your alert Condition Formula),BARTIME >= ((05*60+30)/(24*60)), BARTIME <= ((22*60+20)/(24*60))) EG =AND(=OR(CROSSOVER(SG9, H) , CROSSOVER(SG9, L)),BARTIME >= ((09*60+30)/(24*60)), BARTIME <= ((18*60+20)/(24*60))) It keeps returning a syntax error and I'm unsure what I'm doing incorrectly. Also I have a 20 EMA on a 5min chart that I have used "Study/Price overlay" to plot it on a 1 tick range chart. I then applied the following formula to the "Study/Price overlay". =OR(CROSSOVER(SG1, H) , CROSSOVER(SG1, L)) But it seems to be triggering the alert when price is nowhere near the 20 EMA plotted on the 1 Tick Range chart. Have I done this 2nd one incorrectly? Thanks |
[2016-10-07 16:10:59] |
Sierra Chart - Max - Posts: 5778 |
Try: =AND(OR(CROSSOVER(SG9, H) , CROSSOVER(SG9, L)), BARTIME >= ((09*60+30)/(24*60)) , BARTIME <= ((18*60+20)/(24*60)))
The issue is the = before the OR. The = before a formula should only be at the very beginning of the whole formula: Study/Chart Alerts And Scanning: Formula Format Overview It is recommended that you take a look at the examples here: Study/Chart Alerts And Scanning: Alert Formula Examples Sierra Chart Support Date Time Of Last Edit: 2016-10-07 16:14:46
|
To post a message in this thread, you need to log in with your Sierra Chart account: