Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 14:35:01 +0000



Post From: Is It Possible To Plot Color Bar Based On Alert Condition To Previous Bar?

[2018-03-12 17:13:15]
cmet - Posts: 708
I have an alert condition based on price action over two bars. However, the condition cannot be present until the second bar is completed.

Basically what I want to do is add the indicator (draw type) to the previous bar once the alert condition is met.

I know you can of course reference past bars in the syntax using [-1], [-2], etc but I want to actually be able to color the previous bar instead of the current one (or add an arrow, dash, triangle or whatever).

Is there a way to do this?