入场条件 rsi 改成45
This commit is contained in:
parent
45db61b615
commit
caa068101d
@ -9,27 +9,27 @@
|
||||
"max_open_trades": 5
|
||||
},
|
||||
"buy": {
|
||||
"ADD_POSITION_THRESHOLD": -0.01,
|
||||
"BUY_THRESHOLD_MAX": -0.014,
|
||||
"BUY_THRESHOLD_MIN": -0.019,
|
||||
"COOLDOWN_PERIOD_MINUTES": 1,
|
||||
"MAX_ENTRY_POSITION_ADJUSTMENT": 1
|
||||
"ADD_POSITION_THRESHOLD": -0.011,
|
||||
"BUY_THRESHOLD_MAX": -0.016,
|
||||
"BUY_THRESHOLD_MIN": -0.027,
|
||||
"COOLDOWN_PERIOD_MINUTES": 8,
|
||||
"MAX_ENTRY_POSITION_ADJUSTMENT": 2
|
||||
},
|
||||
"sell": {
|
||||
"EXIT_POSITION_RATIO": 0.412,
|
||||
"SELL_THRESHOLD_MAX": 0.082,
|
||||
"SELL_THRESHOLD_MIN": 0.008,
|
||||
"TRAILING_STOP_DISTANCE": 0.005,
|
||||
"TRAILING_STOP_START": 0.02
|
||||
"EXIT_POSITION_RATIO": 0.587,
|
||||
"SELL_THRESHOLD_MAX": 0.067,
|
||||
"SELL_THRESHOLD_MIN": 0.012,
|
||||
"TRAILING_STOP_DISTANCE": 0.014,
|
||||
"TRAILING_STOP_START": 0.01
|
||||
},
|
||||
"protection": {},
|
||||
"trailing": {
|
||||
"trailing_stop": true,
|
||||
"trailing_stop_positive": 0.253,
|
||||
"trailing_stop_positive_offset": 0.313,
|
||||
"trailing_only_offset_is_reached": true
|
||||
"trailing_stop_positive": 0.213,
|
||||
"trailing_stop_positive_offset": 0.307,
|
||||
"trailing_only_offset_is_reached": false
|
||||
}
|
||||
},
|
||||
"ft_stratparam_v": 1,
|
||||
"export_time": "2025-06-27 07:47:09.914912+00:00"
|
||||
"export_time": "2025-06-27 18:37:00.554316+00:00"
|
||||
}
|
||||
@ -276,7 +276,7 @@ class FreqaiPrimer(IStrategy):
|
||||
if "&-price_value_divergence" in dataframe.columns:
|
||||
cond1 = (dataframe["&-price_value_divergence"] < self.buy_threshold)
|
||||
cond2 = (dataframe["volume_z_score"] > 1.5)
|
||||
cond3 = (dataframe["rsi"] < 40)
|
||||
cond3 = (dataframe["rsi"] < 45)
|
||||
cond4 = (dataframe["close"] <= dataframe["bb_lowerband"])
|
||||
buy_condition = cond1 & cond2 & cond3 & cond4
|
||||
conditions.append(buy_condition)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user