mirror of
https://github.com/artemium428/tvsignals-to-tg.git
synced 2026-09-15 17:16:21 +00:00
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:
parent
15efda5e0d
commit
0d724a0179
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue