trailing 设置写死, 听grok的

This commit is contained in:
Ubuntu 2025-11-23 17:34:19 +08:00
parent b862d5d701
commit a4a9d6dfd9
2 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@ class FreqaiPrimer(IStrategy):
# 启用自定义ROI回调函数
use_custom_roi = True
# 写死在策略里,永远不参与 hyperopt
trailing_stop = True
trailing_stop_positive = 0.012 # 1.2% 固定回调(震荡市最稳)
trailing_stop_positive_offset = 0.018 # 1.8% 盈利后才激活(防止过早启动)
trailing_only_offset_is_reached = True # 必须等盈利超过 offset 才启动 trailing
# 用于跟踪市场状态的数据框缓存
_dataframe_cache = None

View File

@ -1 +1 @@
./hyperopt_org.sh 20251110 20251125 --spaces buy --spaces sell --spaces roi --spaces trailing --spaces stoploss --jobs 8 --epochs 500
./hyperopt_org.sh 20251110 20251122 --spaces buy --spaces sell --spaces roi --spaces trailing --spaces stoploss --jobs 8 --epochs 500