Support Board
Date/Time: Wed, 27 Nov 2024 01:42:45 +0000
Post From: How to create an COLOR BAR BASED UPON ALERT CONDITION for multiple bars following a signal
[2023-10-09 15:10:46] |
Sawtooth - Posts: 4120 |
First make the close outside the Opening Range persistent: =IF(C>ORhigh,1,IF(C<ORhigh,-1,ID1.SG1[-1])) where ID1 is this color bar study. Then use two more instances of the color bar study to combine the persistent with the MA crossover: Long trigger: =AND(ID1.SG1=1,CROSSFROMBELOW(C,ID2.SG1)) Short trigger: =AND(ID1.SG1=-1,CROSSFROMABOVE(C,ID2.SG1)) where ID2 is the MA. |