]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
perf: refine extrema computation rolling window
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 6 Feb 2025 13:35:42 +0000 (14:35 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 6 Feb 2025 13:35:42 +0000 (14:35 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/config-template.json
quickadapter/user_data/strategies/QuickAdapterV3.py

index 2b6fe86971ea2d3137aa92d28efc7ba08c94cca3..bc3ec1871a32a142cd003f58494aa8129b2ac39c 100644 (file)
     // // Spot meme
     // "pair_whitelist": [
     //     "DOGE/USDT",
-    //     "PENGU/USDT",
     //     "SHIB/USDT",
     //     "PEPE/USDT",
-    //     "BONK/USDT"
+    //     "BONK/USDT",
+    //     "WIF/USDT",
     // ],
   },
   "pairlists": [
index a2c1f441135715b337ab40a34af94293697fb0a7..af85485f50f5ab5697f561194f1c72dd38978353 100644 (file)
@@ -254,7 +254,7 @@ class QuickAdapterV3(IStrategy):
         dataframe["maxima"] = np.where(dataframe["&s-extrema"] == 1, 1, 0)
         dataframe["&s-extrema"] = (
             dataframe["&s-extrema"]
-            .rolling(window=5, win_type="gaussian", center=True)
+            .rolling(window=6, win_type="gaussian", center=True)
             .mean(std=0.5)
         )
         return dataframe