Support Board
Date/Time: Sun, 11 May 2025 05:29:17 +0000
Post From: Error Referencing Previous Color Bar Alert Code
[2018-05-10 19:34:00] |
a Gem Tree - Posts: 60 |
Unfortunately for me, it does not work, whether I add the =AND statement, or if I just write it as: =ID4.SG1=1 I have made a long list of parameters in the first color bar study, all of which are linked by an OR statement. =OR(ID1.SG1[-1]>X,ID1.SG1[-2]>X,ID1.SG1[-3]>X) Then, I am including whether the first Color Bar study had triggered / happened as a parameter in the second alert code study " =ID4.SG1=1 " The above statement " =ID4.SG1=1 " Does not cause any syntax errors, however, the color bar study fails to show a trigger event, and when referenced shows that it is referencing no bars at all. However, I can type " =ID4.SG1=0 ". This shows a trigger event in all the opposing bars that I don't want to reference. Also, as far as I can tell, =AND statements don't require 2 things. They work with just one parameter. https://imgur.com/a/TYHS7mE Here's a picture of a color bar (which uses deep blue colored bar) referencing another color bar study (which uses a Purple Star). When the second, deep blue, color bar has its alert set to = 0, it references / triggers on all bars but the one in question. When the second, deep blue, color bar has its alert set to = 1, it references / triggers on nothing. THERE SHOULD BE, a DEEP BLUE bar on the last bar with a purple star. Here's another, more simplified chart with only 3 studies. https://imgur.com/a/xxXzxQj The second color bar study (study ID 3), should be placing a white bar over the first color bar study's deep blue bar. It works on all the bars other than the first color bar's trigger. " =ID2.SG1=0 " But it doesn't work when set to " =ID2.SG1=1 " Date Time Of Last Edit: 2018-05-10 20:47:11
|