Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 22:39:40 +0000



COLOR BAR BASED ON ALERT

View Count: 1339

[2014-10-06 08:33:38]
User28317 - Posts: 149
I HAVE SEVERAL ALERTS THAT COLOR THE BARS BASED ON SET CONDITIONS. HOWEVER, I CAN'T GET THE BAR TO CHANGE FROM A BUY TO A SELL WHEN THE SLOPE OF THE 16 HULL CHANGES FROM POSITIVE TO NEGATIVE. THERE IS A SEVERAL BAR DELAY BASED ON ANOTHER CONDITION. ANY ADVICE WOULD BE APPRECIATED.
imageHOW TO CHANGE BAR COLOR BASED ON SLOPE OF HULL.JPG / V - Attached On 2014-10-06 08:32:51 UTC - Size: 118.98 KB - 365 views
[2014-10-06 13:35:40]
mkata - Posts: 103
THERE IS A SEVERAL BAR DELAY BASED ON ANOTHER CONDITION.

You will need to move the hull condition study up higher in the study list so that it takes precedence before the other study conditions.

http://www.sierrachart.com/index.php?page=doc/doc_ChartStudies.html#StudyDisplayOrder
[2014-10-06 15:40:32]
User28317 - Posts: 149
If I wanted to combine 4 alerts into one so I didn't have to deal with priority, how would the the structure look? Would you start out with =or and then do and for each additional expression?
[2014-10-06 15:42:51]
User28317 - Posts: 149
these are two sell expressions, how to combine them as one?
imageALERT 14 SELL.JPG / V - Attached On 2014-10-06 15:41:39 UTC - Size: 79.69 KB - 365 views
imageALERT 18 SELL.JPG / V - Attached On 2014-10-06 15:42:00 UTC - Size: 81.79 KB - 331 views
[2014-10-06 16:56:38]
mkata - Posts: 103
Are you trying to color the price bar up/down when the slope of two MA's are both(+) or both(-)?
[2014-10-07 18:03:29]
User28317 - Posts: 149
When both are positive I want to color the price bar positive. If the 16 Hull is above the 25 Hull and the 16 hull turns color due to slope, and price bar closes below the MA's, then I want to prioritize the color to being negative.
imageHOW TO CHANGE BAR COLOR BASED ON SLOPE OF HULL.JPG / V - Attached On 2014-10-07 18:02:18 UTC - Size: 118.98 KB - 316 views
[2014-10-08 00:34:50]
mkata - Posts: 103
See if this works. In my example ID6=16Hull and ID7=25Hull.
ALERT#1
=OR(AND(ID6.SG1>ID6.SG1[-1],ID7.SG1>ID7.SG1[-1]),OR(AND(ID6.SG1>ID6.SG1[-1],ID7.SG1<ID7.SG1[-1])))

ALERT#2
=OR(AND(ID6.SG1<ID6.SG1[-1],ID7.SG1<ID7.SG1[-1]),OR(AND(ID6.SG1<ID6.SG1[-1],ID7.SG1>ID7.SG1[-1])))

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

Login

Login Page - Create Account