Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 10:32:08 +0000



[User Discussion] - Color Bar BAsed on Alert Condition

View Count: 923

[2015-02-22 23:51:36]
User121729 - Posts: 37
I am having a problem with a code I have set on the color bar based on alert condition. I have it set to place a dot below the bar.. It does that accurately but occasionally it gives me some other output that I know is not correct. When I disconnect from my data feed then reconnect it is accurate for a while but reverts back to inaccurate output at times.


Here is the code.... which are all necessary to be true.

=and(O<C,ID:7.SG2<=O,ID:13.SG3>ID:13.SG3[-1],ID:13.SG3<-10)


Is there a problem with this code? I get no error messages and gives gives the correct output at times.

Thanks
[2015-02-23 00:09:26]
mkata - Posts: 103
There should not be the character ":" after your ID. It should read ID7.SG2, ID13.SG3 and so on.
[2015-02-23 00:18:19]
User121729 - Posts: 37
Thanks.. but I have many codes set like this and they work .. I changed the code to this format and it still reverts back to some other outputs at times. Is there a limit to how many AND statements I can have or maybe my outputs is set incorrectly.
Date Time Of Last Edit: 2015-02-23 13:48:54
[2015-02-24 00:21:57]
cmet - Posts: 565
I recently posted a question about this same type of issue. What is Preventing Some Studies From Updating in Real Time? I was told that it may be a problem with the study(ies) you're using.

Pretty big issue if you're trying to use them in real time.

The ":" is fine. I use it on every formula with no issues.

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

Login

Login Page - Create Account