Login Page - Create Account

Support Board

Date/Time: Sat, 04 Apr 2020 04:36:19 +0000

[User Discussion] - Alert bar syntax for % difference

[2019-06-06 07:57:13]
User373551 - Posts: 2 | Ending Date: 2016-10-04 [Expired]
Can someone give me an example of the syntax needed for a color alert bar based on the percent difference between the high (or low) and the close of a study ? For example, the alert would show when the high of a given study is a value 60% greater than the close on the current bar . . .
Thanks for your time-
[2019-06-06 15:48:16]
tomgilb - Posts: 2430 | Ending Date: 2020-04-30
For a ratio of High minus Close to the bar's range:
For a ratio of Close minus Low to the bar's range:

To apply these formulas to a study's values, the study must output OHLC values in separate subgraphs, e.g. the Daily OHLC study as ID1:

To get an alert greater than 60%:
[2019-06-07 15:43:57]
User373551 - Posts: 2 | Ending Date: 2016-10-04 [Expired]
Thank you for your time on this. Hope you have a great weekend.

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


Login Page - Create Account