Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 11:23:59 +0000



[User Discussion] - 30 Period High Alert for Study

View Count: 811

[2019-09-27 10:07:37]
User513662 - Posts: 90
Hello,

I am trying to find a way to have an alert condition for a 30 period high for the rate of change study. I would like to look back 30 periods, and if the current value is greater than all 30 periods then the alert triggers.

I tried a few different ways with the Alert Condition e.g. =ID14.SG1 > MAX(ID14.SG1[0:-30]) but it does not work. I also looked for a study to do it but could not find.

Does anyone have any suggestions?

Many thanks.
[2019-09-27 13:32:03]
Sawtooth - Posts: 3989
If you compare the current bar to the current bar, it will never be TRUE.

Try this:
=ID14.SG1 > MAX(ID14.SG1[-1:-30])
[2019-09-27 22:21:13]
User513662 - Posts: 90
Wow that works. Thank you, very much appreciated.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account