]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(qav3): typo in variable name
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 5 Aug 2025 23:32:49 +0000 (01:32 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 5 Aug 2025 23:32:49 +0000 (01:32 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/QuickAdapterV3.py

index 525be0b3bbf3efd001787b33075b23fa4773c947..7c61bd7a9076f468ef407a5ef5769cd40e4f3a30 100644 (file)
@@ -1003,7 +1003,7 @@ class QuickAdapterV3(IStrategy):
         df: DataFrame,
         trade: Trade,
         min_history_window_secs: int = 3600,
-        max_history_windows_secs: int = 43200,
+        max_history_window_secs: int = 43200,
     ) -> tuple[float, float]:
         unrealized_pnl_history = QuickAdapterV3.get_trade_unrealized_pnl_history(trade)
 
@@ -1019,7 +1019,7 @@ class QuickAdapterV3(IStrategy):
         history_window_secs = np.interp(
             last_label_natr_value_quantile,
             [0.0, 1.0],
-            [max_history_windows_secs, min_history_window_secs],
+            [max_history_window_secs, min_history_window_secs],
         )
 
         process_throttle_secs = self.config.get("internals", {}).get(