From 0d724a01798e44064e6fe3c7ad799c78770b522b Mon Sep 17 00:00:00 2001 From: Artemii Peretiachenko Date: Fri, 24 Jul 2026 21:11:34 +0200 Subject: [PATCH] Tweak chart Entry/SL styles and Price span. Make Entry dashed and SL solid, and draw Price from the current candle rightward. Co-authored-by: Cursor --- app/chart.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/chart.py b/app/chart.py index 74334aa..f8efeec 100644 --- a/app/chart.py +++ b/app/chart.py @@ -234,8 +234,8 @@ def render_setup_chart( # Levels + zones start at the entry (last real) candle, not full chart width level_specs = [ - (entry_p, COLORS["entry"], "-", 1.4), - (sl_p, COLORS["sl"], "--", 1.2), + (entry_p, COLORS["entry"], "--", 1.2), + (sl_p, COLORS["sl"], "-", 1.2), (tp1_p, COLORS["tp1"], ":", 1.0), (tp2_p, COLORS["tp2"], ":", 1.0), (tp3_p, COLORS["tp3"], ":", 1.0), @@ -299,11 +299,11 @@ def render_setup_chart( if current_p is not None: ax.hlines( current_p, - xmin=entry_x, + xmin=now_x, xmax=x_right, colors=COLORS["price"], linestyles="-.", - linewidths=1.3, + linewidths=1.0, alpha=0.95, zorder=5, )