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/
54 lines
1.0 KiB
Python
54 lines
1.0 KiB
Python
"""
|
|
定制组件统一入口
|
|
|
|
所有定制因子、信号生成器、风控组件都在这里导出
|
|
"""
|
|
|
|
# 定制因子
|
|
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',
|
|
] |