AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Trading

apply_risk_limits function not exist

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

File ~/Documents/GitHub/FinRL-Trading/src/strategies/ml_strategy.py:935, in MLStockSelectionStrategy.generate_weights(self, data, **kwargs)
932 weights_df['date'] = meta.get('trade_date')
934 # 应用风控限制与归一化
--> 935 weights_df = self.apply_risk_limits(weights_df)
937 result = StrategyResult(
938 strategy_name=self.config.name,
939 weights=weights_df,
(...) 945 }
946 )
948 self.logger.info(f"生成 ML 权重 {len(weights_df)} 只股票")

AttributeError: 'MLStockSelectionStrategy' object has no attribute 'apply_risk_limits'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.