Support Board
Date/Time: Sun, 24 Nov 2024 15:11:52 +0000
[User Discussion] - simple alert
View Count: 1252
[2013-10-31 16:39:05] |
M5amhan - Posts: 468 |
anyone know how would i write the highest reading of the HL of the past 6 bars? in other words taking the HL of each of the past 6 bars and input the highest reading out of them? is it even possible? thanks |
[2013-10-31 16:52:24] |
Sawtooth - Posts: 4118 |
Since a simple alert formula can only return a TRUE or FALSE, you'd have to compare the highest high to something. This example formula returns whether the Close is higher than the highest high of the previous 6 highs. (Ranges cannot be used in simple alert formulas.) =C>MAX(H[-1],H[-2],H[-3],H[-4],H[-5],H[-6]) |
[2013-10-31 16:54:02] |
M5amhan - Posts: 468 |
so couldn't I just change the H to HL?
|
[2013-10-31 17:01:40] |
M5amhan - Posts: 468 |
I got it, thanks tom
|
[2013-10-31 17:02:06] |
Sawtooth - Posts: 4118 |
Here are the available simple alert Identifiers: http://www.sierrachart.com/index.php?l=doc/doc_AlertCondAndScan.html#BaseGraphIdentifiers Specifically, what are the conditions of the alert? Do you want to find the highest of each bar's HL average for the previous 6 bars? And what do you want to compare it to? Date Time Of Last Edit: 2013-10-31 17:20:16
|
[2013-10-31 17:04:33] |
M5amhan - Posts: 468 |
comparing it to the current close.. i changed the H to HL and it gave me what i needed
|
[2013-10-31 17:18:51] |
Sawtooth - Posts: 4118 |
Well, I learn something new everyday!
|
To post a message in this thread, you need to log in with your Sierra Chart account: