Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 16:51:08 +0000



[Programming Help] - Color Bar Alert - Single Bar

View Count: 519

[2020-07-06 00:13:03]
KXRCap - Posts: 52
In Color Bar Based on Alert. How can I set that just the first bar is the color. Example say simple Oscillator crosses "0". At the moment it crosses "0" based on the close of that bar, I want to color just that bar.

ID:1.SG1>0 - only the very first time it happens.
[2020-07-06 01:45:12]
Sawtooth - Posts: 3973
Compare it to the previous bar:
=AND(ID1.SG1[-1]<0,ID1.SG1>0)
[2020-07-06 02:25:36]
KXRCap - Posts: 52
@tomgilb - Aah nice! Thanks, I swacked my holiday forehead on the desk many a time. THANKS!

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

Login

Login Page - Create Account