Support Board
Date/Time: Sun, 19 May 2024 00:28:55 +0000
Post From: formula for a candle body mostly above or below a zero line
[2020-08-24 18:10:12] |
Sawtooth - Posts: 4000 |
Sorry, you are correct, you can't reverse all of the operators ;) If you want separate alerts/colors, you'll need two instances of the color bar study, or two studies' Alerts tabs where you can put two separate formulas. Red bars crossing zero from above: =AND(ID1.SG1>0,ID1.SG4<0,ABS(ID1.SG1)>ABS(ID1.SG4)) Green bars crossing zero from below: =AND(ID1.SG1<0,ID1.SG4>0,ABS(ID1.SG1)>ABS(ID1.SG4)) You could combine them into one alert using OR: =OR(AND(ID1.SG1>0,ID1.SG4<0,ABS(ID1.SG1)>ABS(ID1.SG4)),AND(ID1.SG1<0,ID1.SG4>0,ABS(ID1.SG1)>ABS(ID1.SG4))) |