Login Page - Create Account

Support Board

Date/Time: Fri, 19 Jul 2024 18:29:51 +0000

[Programming Help] - Colour Bars Based on Alert Condition - Programming Help

View Count: 68

[2024-07-10 07:39:52]
BHowellNZ - Posts: 21
Hi all, I'm hoping this is on the public forum as opposed to direct to SC but either way it would be good to get some guidance with programming the Color bar based on alert condition

Basically, I have a line of code which shows me a certain condition with a mix of different inputs and its working great.
That code looks like this
- =AND(ID38.SG1>ID38.SG1[-1],ID48.SG1>ID42.SG1)

I want to add a divergence signal to this code, so I want the above to be true, but I also want to add the divergence detector study positive divergence to also be true to give a more meaningful signal
Divergence study inputs are ID1.SG4

Im not overly confident with what i need to do here to add this into the code and i struggle with the SC instructions. Any help would be much appreciated!!

[2024-07-10 13:05:15]
Sawtooth - Posts: 4048
Try this:
[2024-07-11 00:02:37]
BHowellNZ - Posts: 21
This is perfect.

Thank you mate

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


Login Page - Create Account