Login Page - Create Account

Support Board


Date/Time: Sat, 26 Nov 2022 21:55:30 +0000



[Programming Help] - Create background alert when price is inside of an extending rectangle.

View Count: 73

[2022-10-01 01:27:16]
HeidiT - Posts: 11
Hi!

I am having trouble figuring out how to make my color background study fire only when inside an extending rectangle drawing.

What I did looks something like the following in the alerts tab of a colored background study:

and(ID30.SG1>0, ID19.SG4>ID19.SG4[-1], UDID[331].A1 > C > UDID[331].A2) (fixed typo)

I put that in and nothing shows up, I do get my signal without the UDID piece. I also tried splitting the UDID into UDID[331].A1 > C, C > UDID[331].A2, which also did not work.

I must be missing something.

Thank you so much!
Date Time Of Last Edit: 2022-10-01 03:23:03
[2022-10-01 02:48:16]
tomgilb - Posts: 3469
The Extending Rectangle drawing has the same ID for the upper and lower edges.
So your formula should use look like this:
=AND(ID30.SG1 > 0,ID19.SG4 > ID19.SG4[-1],UDID[331].A1 > C > UDID[331].A2)

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

Login

Login Page - Create Account