Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 14:47:53 +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.