Support Board
Date/Time: Mon, 13 Jan 2025 20:15:07 +0000
Post From: User Question
[2017-05-02 00:19:19] |
Sawtooth - Posts: 4151 |
Use formulas like these: AND(C[-4]>O[-4],C[-3]>O[-3],C[-2]>O[-2],C[-1]>O[-1],C<O) AND(C[-4]<O[-4],C[-3]<O[-3],C[-2]<O[-2],C[-1]<O[-1],C>O) If you want to combine the alerts, use this: OR(AND(C[-4]>O[-4],C[-3]>O[-3],C[-2]>O[-2],C[-1]>O[-1],C<O), AND(C[-4]<O[-4],C[-3]<O[-3],C[-2]<O[-2],C[-1]<O[-1],C>O)) The separate alert formulas can be placed on the Alerts tab of any two studies. The combined alert formula can be placed on the Alerts tab of the Chart Settings. To see historical occurrences, add Color Bar Based On Alert Condition study to a chart, and place the combined formula in its Alerts tab. If you want different colors for each direction, add two instances of the Color Bar study, and place the separate formulas in each one's Alerts tab. |