refactor(archive): move unused modules to archive/
Archive legacy framework and utility modules that are no longer referenced by the active core (datasource/ and rotation/): - framework/ -> archive/framework/ - framework_v2/ -> archive/framework_v2/ - strategies/ -> archive/strategies/ - config/ -> archive/config/ - visualization/ -> archive/visualization/ - scripts/ -> archive/scripts/ - tests/ -> archive/tests/ - run_rotation.py, run_us_rotation.py -> archive/single_files/ - compare_*.py, test_api_dates.py -> archive/single_files/
This commit is contained in:
54
archive/strategies/shared/__init__.py
Normal file
54
archive/strategies/shared/__init__.py
Normal file
@@ -0,0 +1,54 @@
|
||||
"""
|
||||
定制组件统一入口
|
||||
|
||||
所有定制因子、信号生成器、风控组件都在这里导出
|
||||
"""
|
||||
|
||||
# 定制因子
|
||||
from strategies.shared.factors.momentum import (
|
||||
MomentumFactor,
|
||||
TrendFactor,
|
||||
ReversalFactor,
|
||||
VolatilityFactor
|
||||
)
|
||||
|
||||
# 定制信号生成器
|
||||
from strategies.shared.signals.selectors import (
|
||||
TopNSelector,
|
||||
TrendFollower,
|
||||
ReversalTrader
|
||||
)
|
||||
|
||||
# 定制风控组件
|
||||
from strategies.shared.risk.controls import (
|
||||
StopLossControl,
|
||||
PositionLimitControl,
|
||||
PremiumControl,
|
||||
premium_filter_callback,
|
||||
crash_filter_callback,
|
||||
holding_time_stoploss_callback
|
||||
)
|
||||
|
||||
|
||||
__all__ = [
|
||||
# 因子
|
||||
'MomentumFactor',
|
||||
'TrendFactor',
|
||||
'ReversalFactor',
|
||||
'VolatilityFactor',
|
||||
|
||||
# 信号生成器
|
||||
'TopNSelector',
|
||||
'TrendFollower',
|
||||
'ReversalTrader',
|
||||
|
||||
# 风控组件
|
||||
'StopLossControl',
|
||||
'PositionLimitControl',
|
||||
'PremiumControl',
|
||||
|
||||
# 回调函数
|
||||
'premium_filter_callback',
|
||||
'crash_filter_callback',
|
||||
'holding_time_stoploss_callback',
|
||||
]
|
||||
Reference in New Issue
Block a user