Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 23:49:45 +0000



[Programming Help] - alert condition formula

View Count: 3508

[2019-10-11 14:29:24]
User884307 - Posts: 173
Hi, i have tried and upto now failed...please help...

what formula is available within the 'alert condition' in alerts for say a study subgraph where if for example, the bar was an up bar (or low bar) and the displayed number (above/below bar study) has reached a determined value and I want it to turn say, white?

I am sorta ok with this kind of problem but on this particular problem I appear to be totally rubbish :-///////

Any (friendly) help would be very much appreciated!

Thankyou in advance :-))))
[2019-10-15 12:43:32]
User884307 - Posts: 173
Any takers on this, i really would appreciate any help?
[2019-10-15 20:49:45]
Sawtooth - Posts: 3976
What study is displaying a value above/below the bar?
[2019-10-15 22:28:46]
User884307 - Posts: 173
Hi, just a study reference calculated elsewhere, just need this reference to change color depending on if the bar has closed up (top of bar) or close down (bottom of bar display)
👍👍👍
[2019-10-15 23:01:41]
Sawtooth - Posts: 3976
You'll need two instances of the Color Bar Based On Alert Condition study, one for each color.

Up bar formula:
=AND(C>O,ID3.SG1>100)
Down bar formula:
=AND(C<O,ID3.SG1<-100)
where ID3 is the referenced study and is above/below a certain value.

If you want to color the referenced study instead of the price bars, follow these instructions:
Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies
[2019-10-15 23:05:46]
User884307 - Posts: 173
I will have a look ASAP, thank you for your kind help, I very much appreciate it 👍👍👍

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

Login

Login Page - Create Account