From eba9df453cf2694f09753e465fe858db6d329a7e Mon Sep 17 00:00:00 2001 From: Artemii Peretiachenko Date: Sat, 25 Jul 2026 20:02:31 +0200 Subject: [PATCH] Always use green TP fills on charts regardless of side. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Short reward zones were red because fill color followed position direction; SL stays red, TP1–3 stay green. Co-authored-by: Cursor --- app/chart.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/chart.py b/app/chart.py index f8efeec..9650685 100644 --- a/app/chart.py +++ b/app/chart.py @@ -33,8 +33,7 @@ COLORS = { "tp1": "#66bb6a", "tp2": "#43a047", "tp3": "#2e7d32", - "long_fill": (0.15, 0.65, 0.45), - "short_fill": (0.85, 0.25, 0.25), + "reward_fill": (0.15, 0.65, 0.45), "risk_fill": (0.85, 0.25, 0.25, 0.10), "label_bg": "#0f1115", "vol_up": "#26a69a", @@ -148,7 +147,7 @@ def render_setup_chart( current_p = _parse_price(current_price) if current_price is not None else None is_long = action == "long" - reward_rgb = COLORS["long_fill"] if is_long else COLORS["short_fill"] + reward_rgb = COLORS["reward_fill"] df = _to_utc_plus_2(df)