]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf(qav3): tune SL
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 30 Apr 2025 22:13:18 +0000 (00:13 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 30 Apr 2025 22:13:18 +0000 (00:13 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/QuickAdapterV3.py

index 92d27fc7acf32bffb03d67d8dc21222baf762b37..91ee8c0553d6b19576493bc4a305713e0d6f4a45 100644 (file)
@@ -369,7 +369,7 @@ class QuickAdapterV3(IStrategy):
         return self.get_label_natr_ratio(pair) * 0.0175
 
     def get_stoploss_natr_ratio(self, pair: str) -> float:
-        return self.get_label_natr_ratio(pair) * 0.625
+        return self.get_label_natr_ratio(pair) * 0.65
 
     def get_take_profit_natr_ratio(self, pair: str) -> float:
         return self.get_stoploss_natr_ratio(pair) * 0.825
@@ -650,7 +650,7 @@ class QuickAdapterV3(IStrategy):
         if self.is_short_allowed():
             if max_open_trades % 2 == 1:
                 max_open_trades += 1
-            return max_open_trades // 2
+            return int(max_open_trades / 2)
         else:
             return max_open_trades