tailing stop fixed
This commit is contained in:
parent
f9351a7b74
commit
d83213dcf7
@ -19,14 +19,14 @@
|
||||
"EXIT_POSITION_RATIO": 0.472,
|
||||
"SELL_THRESHOLD_MAX": 0.065,
|
||||
"SELL_THRESHOLD_MIN": 0.002,
|
||||
"TRAILING_STOP_DISTANCE": 0.025,
|
||||
"TRAILING_STOP_START": 0.075
|
||||
"TRAILING_STOP_DISTANCE": 0.0125,
|
||||
"TRAILING_STOP_START": 0.045
|
||||
},
|
||||
"protection": {},
|
||||
"trailing": {
|
||||
"trailing_stop": true,
|
||||
"trailing_stop_positive": 0.025,
|
||||
"trailing_stop_positive_offset": 0.075,
|
||||
"trailing_stop_positive": 0.0125,
|
||||
"trailing_stop_positive_offset": 0.045,
|
||||
"trailing_only_offset_is_reached": false
|
||||
}
|
||||
|
||||
|
||||
@ -25,8 +25,8 @@ class FreqaiPrimer(IStrategy):
|
||||
INTERFACE_VERSION = 3 # 使用最新策略接口版本
|
||||
|
||||
# --- 🧪 固定配置参数(从hyperopt优化结果获取)---
|
||||
TRAILING_STOP_START = 0.016
|
||||
TRAILING_STOP_DISTANCE = 0.015
|
||||
TRAILING_STOP_START = 0.045
|
||||
TRAILING_STOP_DISTANCE = 0.0125
|
||||
|
||||
BUY_THRESHOLD_MIN = -0.035
|
||||
BUY_THRESHOLD_MAX = -0.001
|
||||
@ -94,8 +94,8 @@ class FreqaiPrimer(IStrategy):
|
||||
use_custom_stoploss = True
|
||||
position_adjustment_enable = True # 启用动态仓位调整
|
||||
trailing_stop = True
|
||||
trailing_stop_positive = 0.025 # 🎯 降低锁定利润到2.5%
|
||||
trailing_stop_positive_offset = 0.08 # 🎯 降低启动阈值到8%
|
||||
trailing_stop_positive = 0.0125 # 🎯 降低锁定利润到2.5%
|
||||
trailing_stop_positive_offset = 0.04 # 🎯 降低启动阈值到8%
|
||||
trailing_only_offset_is_reached = False
|
||||
|
||||
minimal_roi = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user