]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(qav3): align variable namespace
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 17 Dec 2025 01:19:58 +0000 (02:19 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 17 Dec 2025 01:19:58 +0000 (02:19 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/QuickAdapterV3.py

index 18bcffb2bb11589bde6841ab549a80f9056c3d21..e8b9c8b83b2ef04b28d401535b9650e36f40485b 100644 (file)
@@ -2465,7 +2465,7 @@ class QuickAdapterV3(IStrategy):
 
         open_trades = Trade.get_trades_proxy(pair=pair, is_open=True)
 
-        take_profit_phase_colors = {
+        take_profit_stage_colors = {
             0: "lime",
             1: "yellow",
             2: "coral",
@@ -2503,7 +2503,7 @@ class QuickAdapterV3(IStrategy):
                     "end": end_date,
                     "y_start": take_profit_price,
                     "y_end": take_profit_price,
-                    "color": take_profit_phase_colors.get(take_profit_stage, "silver"),
+                    "color": take_profit_stage_colors.get(take_profit_stage, "silver"),
                     "line_style": "solid",
                     "width": 1,
                     "label": f"Take Profit {take_profit_stage}",
@@ -2529,7 +2529,7 @@ class QuickAdapterV3(IStrategy):
                     "end": end_date,
                     "y_start": take_profit_price,
                     "y_end": take_profit_price,
-                    "color": take_profit_phase_colors.get(final_stage, "silver"),
+                    "color": take_profit_stage_colors.get(final_stage, "silver"),
                     "line_style": "solid",
                     "width": 1,
                     "label": f"Take Profit {final_stage}",