Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 23:49:42 +0000



Post From: Using “color background based on alert condition” for the “zig zag” stud

[2021-05-12 00:11:33]
9710276 - Posts: 24
Hi

I’m using the “color background based on alert condition” study to create an alert condition for the “zig zag” study.

I’d like to color the background GREEN when a HH precedes a LH.

The documentation says the ZigZag study uses a value of 2 for a HH -- and a value of 3 for a LH
Zig Zag: Text Labels Subgraph Description

SETUP
---------------------------
1 -- The ZigZag study is ID12 on my chart
2 -- My “color background based on alert condition” formula is as follows:
=AND(ID12,SG2[0]=3, ID12,SG2[-1]=2)
3 – Nothing happens. I verified the alert is enabled (check box is checked).


Thanks for the help. This seems like it should be simple – not sure what I’m missing.