Support Board
Date/Time: Thu, 30 Oct 2025 05:02:29 +0000
Post From: Request for simple "Alert code"
| [2016-05-25 13:42:58] |
| Sawtooth - Posts: 4281 |
|
Try this: Add two instances of the Color Bar Based On Alert Condition study, one for each color/direction. Use these formulas on the Alerts tab of the respective study: Two consecutive up closes: =AND(C>C[-1],C[-1]>C[-2]) Two consecutive down closes: =AND(C<C[-1],C[-1]<C[-2]) Choose your Draw Style and color. |
