]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
fix(qav3): do not enforce freqtrade order_types defaults
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 1 Nov 2025 14:34:15 +0000 (15:34 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 1 Nov 2025 14:34:15 +0000 (15:34 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
README.md
quickadapter/user_data/strategies/QuickAdapterV3.py

index f907d49df66d0384945fee5160b9760439dbbbd4..be9a4ded47a7df03e60d2635735b9ff8dc691d42 100644 (file)
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ docker compose up -d --build
 | reversal_confirmation.lookback_period | 0                | int >= 0 | Prior confirming candles; 0 = none.                                             |
 | reversal_confirmation.decay_ratio | 0.5              | float (0,1] | Geometric per-candle relaxation factor.                                           |
 | reversal_confirmation.min_natr_ratio_percent | 0.0099          | float [0,1] | Lower bound fraction for volatility adjusted reversal threshold.                          |
-| reversal_confirmation.max_natr_ratio_percent | 0.            | float [0,1] | Upper bound fraction (>= lower bound) for volatility adjusted reversal threshold.         |
+| reversal_confirmation.max_natr_ratio_percent | 0.33            | float [0,1] | Upper bound fraction (>= lower bound) for volatility adjusted reversal threshold.         |
 | _Regressor model_ |                  |  |                                                                                 |
 | freqai.regressor | `xgboost`        | enum {`xgboost`,`lightgbm`} | Machine learning regressor algorithm.                                           |
 | _Extrema smoothing_ |                  |  |                                                                                 |
index 7696627c83265364b4bab0c9eb312451bc04dc5d..8f894817e6563b332265a59a9b4f05b68b4041b9 100644 (file)
@@ -76,18 +76,6 @@ class QuickAdapterV3(IStrategy):
     stoploss = -0.02
     use_custom_stoploss = True
 
-    order_types = {
-        "entry": "limit",
-        "exit": "limit",
-        "emergency_exit": "limit",
-        "force_exit": "limit",
-        "force_entry": "limit",
-        "stoploss": "limit",
-        "stoploss_on_exchange": False,
-        "stoploss_on_exchange_interval": 60,
-        "stoploss_on_exchange_limit_ratio": 0.99,
-    }
-
     default_exit_thresholds: dict[str, float] = {
         "k_decl_v": 0.6,
         "k_decl_a": 0.4,
@@ -101,7 +89,7 @@ class QuickAdapterV3(IStrategy):
         "lookback_period": 0,
         "decay_ratio": 0.5,
         "min_natr_ratio_percent": 0.0099,
-        "max_natr_ratio_percent": 0.4,
+        "max_natr_ratio_percent": 0.33,
     }
 
     position_adjustment_enable = True