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 <cursoragent@cursor.com>
This commit is contained in:
Artemii Peretiachenko 2026-07-24 21:11:34 +02:00
parent 15efda5e0d
commit 0d724a0179

View file

@ -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,
)