Support Board
Date/Time: Fri, 09 May 2025 19:04:09 +0000
Post From: Coloring Background based on consecutive bars
[2019-08-10 19:58:29] |
Bill Black - Posts: 6 |
My mistake. Short: And(C<O,C[-1]<O[-1]) Long: And(C>O,C[-1]>O[-1]) I'm not sure how you would capture the first bar. Your problem is that if you attempted to color the first bar after a change from short to long or long to short, it would color a bar even if it weren't part of a trend. If you used an OR operator to include reversals, you'd essentially have every bar colored. I don't believe that Sierra Chart can evaluate a subsequent candle from a current candle (as we can't generally see into the future) but if someone has a custom dll or study that can do this, awesome. |