This commit is contained in:
zhangkun9038@dingtalk.com 2025-05-01 18:00:07 +08:00
parent c504dca387
commit e9733af70c

View File

@ -11,6 +11,8 @@ from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
logger = logging.getLogger(__name__)
class MLBasedSentimentStrategy(IStrategy):
# 参数定义MLBasedSentimentStrategy 动态适配 buy_rsi 和 sell_rsi禁用 Hyperopt 优化
buy_rsi = IntParameter(low=10, high=50, default=27, space="buy", optimize=False, load=True)