Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 22:57:08 +0000



How to reference all visible bars in alert?

View Count: 1580

[2019-03-02 15:00:19]
User462086 - Posts: 188
I'd like to color volume bars based on height relative to the tallest bar that is currently visible. Something like this (each line would trigger a different color):

V >= 0.8 * maximum visible value
AND( V >= 0.6 * max visible value, V < 0.8 * maximum visible value )
AND( V >= 0.4 * max visible value, V < 0.6 * maximum visible value )
AND( V >= 0.2 * max visible value, V < 0.4 * maximum visible value )
V < 0.2 * maximum visible value

I've found the page that talks about how to reference a range, something like [0:-10], but I can't find documentation for setting the lookback based on visible bar count.

Many thanks!!
[2019-03-04 04:21:51]
User462086 - Posts: 188
Hi Ackin, thank you very much. I went to your forum and found that it requires registration to access the code. Is it possible to post the code on this forum too? Many thanks!!
[2019-03-07 06:00:31]
User462086 - Posts: 188
Hi Ackin, your forum sounds valuable! I'll check it out. And thank you again for helping.

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

Login

Login Page - Create Account