当前策略针对回归类型的模型
This commit is contained in:
parent
2383624267
commit
60b14a6155
@ -67,7 +67,7 @@
|
|||||||
"freqaimodel": "CatboostClassifier",
|
"freqaimodel": "CatboostClassifier",
|
||||||
"purge_old_models": 2,
|
"purge_old_models": 2,
|
||||||
"train_period_days": 15,
|
"train_period_days": 15,
|
||||||
"identifier": "test2",
|
"identifier": "test18",
|
||||||
"train_period_days": 30,
|
"train_period_days": 30,
|
||||||
"backtest_period_days": 10,
|
"backtest_period_days": 10,
|
||||||
"live_retrain_hours": 0,
|
"live_retrain_hours": 0,
|
||||||
|
|||||||
@ -43,11 +43,11 @@ services:
|
|||||||
command: >
|
command: >
|
||||||
backtesting
|
backtesting
|
||||||
--logfile /freqtrade/user_data/logs/freqtrade.log
|
--logfile /freqtrade/user_data/logs/freqtrade.log
|
||||||
--freqaimodel LightGBMClassifier
|
--freqaimodel XGBoostRegressor
|
||||||
--config /freqtrade/config_examples/config_freqai.okx.json
|
--config /freqtrade/config_examples/config_freqai.okx.json
|
||||||
--strategy-path /freqtrade/templates
|
--strategy-path /freqtrade/templates
|
||||||
--strategy FreqaiExampleStrategy
|
--strategy FreqaiExampleStrategy
|
||||||
--timerange 20250301-20250420
|
--timerange 20250320-20250420
|
||||||
--export trades
|
--export trades
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ class FreqaiExampleStrategy(IStrategy):
|
|||||||
|
|
||||||
dataframe["%-rsi-period"] = ta.RSI(dataframe, timeperiod=period)
|
dataframe["%-rsi-period"] = ta.RSI(dataframe, timeperiod=period)
|
||||||
dataframe["%-mfi-period"] = ta.MFI(dataframe, timeperiod=period)
|
dataframe["%-mfi-period"] = ta.MFI(dataframe, timeperiod=period)
|
||||||
dataframe["%-adx-period"] = ta.ADX(dataframe, timeperiod=period)
|
#dataframe["%-adx-period"] = ta.ADX(dataframe, timeperiod=period)
|
||||||
dataframe["%-sma-period"] = ta.SMA(dataframe, timeperiod=period)
|
dataframe["%-sma-period"] = ta.SMA(dataframe, timeperiod=period)
|
||||||
dataframe["%-ema-period"] = ta.EMA(dataframe, timeperiod=period)
|
dataframe["%-ema-period"] = ta.EMA(dataframe, timeperiod=period)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user