Login Page - Create Account

Support Board


Date/Time: Mon, 27 Jan 2025 05:06:36 +0000



[Programming Help] - Color bar based on alert

View Count: 1053

[2019-02-27 19:13:58]
Ro - Posts: 10
Hi,

I have created a simple alert condition that highlights a bar if the current period close is higher than the prior volume value are high (VAH)

AND(C>ID7.SG2[-1], C>ID7.SG2[-2])

I would like the alert on the hourly chart to actually highlight the current period bar if the close is higher than the prior day VAH and the prior 2 day VAH. Is this possible?

Thanks,
R
[2019-02-28 08:43:21]
Sierra Chart Engineering - Posts: 104368
Yes this is possible. You will want to add the Volume Value Area Lines two additional times to the chart. One referencing the prior period and another one referencing 2 periods ago.

You can then reference these study subgraphs from this study in the alert formula.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-02-28 08:43:50

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

Login

Login Page - Create Account