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