Always use green TP fills on charts regardless of side.

Short reward zones were red because fill color followed position direction; SL stays red, TP1–3 stay green.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Artemii Peretiachenko 2026-07-25 20:02:31 +02:00
parent 0d724a0179
commit eba9df453c

View file

@ -33,8 +33,7 @@ COLORS = {
"tp1": "#66bb6a", "tp1": "#66bb6a",
"tp2": "#43a047", "tp2": "#43a047",
"tp3": "#2e7d32", "tp3": "#2e7d32",
"long_fill": (0.15, 0.65, 0.45), "reward_fill": (0.15, 0.65, 0.45),
"short_fill": (0.85, 0.25, 0.25),
"risk_fill": (0.85, 0.25, 0.25, 0.10), "risk_fill": (0.85, 0.25, 0.25, 0.10),
"label_bg": "#0f1115", "label_bg": "#0f1115",
"vol_up": "#26a69a", "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 current_p = _parse_price(current_price) if current_price is not None else None
is_long = action == "long" 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) df = _to_utc_plus_2(df)