From c905230a401fcfecfad26f2791c9d9ae169a6caf Mon Sep 17 00:00:00 2001 From: aszerW Date: Wed, 3 Jun 2026 23:41:46 +0800 Subject: [PATCH] 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/ --- {config => archive/config}/settings.py | 0 {framework => archive/framework}/__init__.py | 0 .../framework}/config/__init__.py | 0 .../framework}/data/__init__.py | 0 .../data/__pycache__/__init__.cpython-312.pyc | Bin .../framework}/execution/__init__.py | 0 .../framework}/factors/__init__.py | 0 .../framework}/risk/__init__.py | 0 .../framework}/signals/__init__.py | 0 .../framework}/strategy/__init__.py | 0 .../framework}/tests/test_execution.py | 0 .../framework}/tests/test_factors.py | 0 .../framework}/tests/test_integration.py | 0 .../framework}/tests/test_risk.py | 0 .../framework}/tests/test_signals.py | 0 .../framework}/tests/test_strategy.py | 0 .../framework_v2}/ALIGNMENT_GUIDE.md | 0 .../ALIGNMENT_SCHEMA_INTEGRATION.md | 0 .../framework_v2}/DATA_ARCHITECTURE.md | 0 .../framework_v2}/DATA_FLOW_DEMO.md | 0 .../framework_v2}/END_TO_END_TEST_REPORT.md | 0 .../FLASK_API_FETCHER_ARCHITECTURE.md | 0 .../framework_v2}/FLASK_API_FETCHER_GUIDE.md | 0 .../framework_v2}/README.md | 0 .../TRADING_CALENDAR_API_INTEGRATION.md | 0 .../framework_v2}/__init__.py | 0 .../framework_v2}/config/CONFIG_DESIGN.md | 0 .../framework_v2}/config/__init__.py | 0 .../framework_v2}/config/loader.py | 0 .../framework_v2}/config/rotation_global.yaml | 0 .../framework_v2}/config/schemas.py | 0 .../framework_v2}/core/__init__.py | 0 .../framework_v2}/core/data.py | 0 .../framework_v2}/core/executor.py | 0 .../framework_v2}/core/factor.py | 0 .../framework_v2}/core/signal.py | 0 .../framework_v2}/core/strategy.py | 0 .../scripts/backtest_global_rotation.py | 0 .../scripts/compare_index_vs_etf_returns.py | 0 .../scripts/convert_to_viewer_csv.py | 0 .../scripts/export_backtest_detail.py | 0 .../scripts/measure_gap_impact.py | 0 .../scripts/verify_cum_return_fix.py | 0 .../scripts/verify_etf_hfq_fix.py | 0 .../framework_v2}/shared/__init__.py | 0 .../framework_v2}/shared/data/__init__.py | 0 .../framework_v2}/shared/data/alignment.py | 0 .../shared/data/flask_api_fetcher.py | 0 .../framework_v2}/shared/data/schemas.py | 0 .../framework_v2}/shared/factors/__init__.py | 0 .../framework_v2}/shared/factors/momentum.py | 0 .../shared/factors/talib_base.py | 0 .../strategies/rotation/__init__.py | 0 .../strategies/rotation/config_simple.yaml | 0 .../strategies/rotation/rotation.py | 0 .../framework_v2}/tests/__init__.py | 0 .../framework_v2}/tests/test_alignment.py | 0 .../framework_v2}/tests/test_config.py | 0 .../framework_v2}/tests/test_end_to_end.py | 0 .../tests/test_flask_api_fetcher.py | 0 .../tests/test_flat_asset_pool.py | 0 .../tests/test_momentum_parity.py | 0 .../scripts}/export_backtest_detail.py | 0 .../scripts}/generate_legacy_report.py | 0 .../scripts}/get_trading_calendar.py | 0 {scripts => archive/scripts}/run_rotation.py | 0 .../single_files/compare_three_versions.py | 0 .../single_files/compare_v1_v2.py | 0 .../single_files/run_rotation_v1.py | 0 .../single_files/run_us_rotation.py | 0 .../single_files/test_api_dates.py | 0 .../strategies}/__init__.py | 0 {strategies => archive/strategies}/base.py | 0 .../strategies}/rotation/__init__.py | 0 .../strategies}/rotation/config.yaml | 0 .../strategies}/rotation/strategy.py | 0 .../strategies}/shared/__init__.py | 0 .../strategies}/shared/data/__init__.py | 0 .../strategies}/shared/data/sources.py | 0 .../strategies}/shared/factors/momentum.py | 0 .../strategies}/shared/risk/controls.py | 0 .../strategies}/shared/signals/selectors.py | 0 .../strategies}/us_rotation/__init__.py | 0 .../strategies}/us_rotation/config.yaml | 0 .../strategies}/us_rotation/strategy.py | 0 .../tests}/test_flask_api_calendar.py | 0 .../tests}/test_trading_calendar.py | 0 {tests => archive/tests}/verify_fix_result.py | 0 {tests => archive/tests}/verify_mode_b.py | 0 .../tests}/verify_premium_calculation.py | 0 .../visualization}/__init__.py | 0 .../visualization}/charts/__init__.py | 0 .../visualization}/charts/indicators.py | 0 .../visualization}/charts/kline.py | 0 .../visualization}/report_generator/README.md | 0 .../report_generator/__init__.py | 0 .../report_generator/generate_report.py | 0 visualization/backtest_viewer.html | 714 ------------------ 98 files changed, 714 deletions(-) rename {config => archive/config}/settings.py (100%) rename {framework => archive/framework}/__init__.py (100%) rename {framework => archive/framework}/config/__init__.py (100%) rename {framework => archive/framework}/data/__init__.py (100%) rename {framework => archive/framework}/data/__pycache__/__init__.cpython-312.pyc (100%) rename {framework => archive/framework}/execution/__init__.py (100%) rename {framework => archive/framework}/factors/__init__.py (100%) rename {framework => archive/framework}/risk/__init__.py (100%) rename {framework => archive/framework}/signals/__init__.py (100%) rename {framework => archive/framework}/strategy/__init__.py (100%) rename {framework => archive/framework}/tests/test_execution.py (100%) rename {framework => archive/framework}/tests/test_factors.py (100%) rename {framework => archive/framework}/tests/test_integration.py (100%) rename {framework => archive/framework}/tests/test_risk.py (100%) rename {framework => archive/framework}/tests/test_signals.py (100%) rename {framework => archive/framework}/tests/test_strategy.py (100%) rename {framework_v2 => archive/framework_v2}/ALIGNMENT_GUIDE.md (100%) rename {framework_v2 => archive/framework_v2}/ALIGNMENT_SCHEMA_INTEGRATION.md (100%) rename {framework_v2 => archive/framework_v2}/DATA_ARCHITECTURE.md (100%) rename {framework_v2 => archive/framework_v2}/DATA_FLOW_DEMO.md (100%) rename {framework_v2 => archive/framework_v2}/END_TO_END_TEST_REPORT.md (100%) rename {framework_v2 => archive/framework_v2}/FLASK_API_FETCHER_ARCHITECTURE.md (100%) rename {framework_v2 => archive/framework_v2}/FLASK_API_FETCHER_GUIDE.md (100%) rename {framework_v2 => archive/framework_v2}/README.md (100%) rename {framework_v2 => archive/framework_v2}/TRADING_CALENDAR_API_INTEGRATION.md (100%) rename {framework_v2 => archive/framework_v2}/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/config/CONFIG_DESIGN.md (100%) rename {framework_v2 => archive/framework_v2}/config/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/config/loader.py (100%) rename {framework_v2 => archive/framework_v2}/config/rotation_global.yaml (100%) rename {framework_v2 => archive/framework_v2}/config/schemas.py (100%) rename {framework_v2 => archive/framework_v2}/core/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/core/data.py (100%) rename {framework_v2 => archive/framework_v2}/core/executor.py (100%) rename {framework_v2 => archive/framework_v2}/core/factor.py (100%) rename {framework_v2 => archive/framework_v2}/core/signal.py (100%) rename {framework_v2 => archive/framework_v2}/core/strategy.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/backtest_global_rotation.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/compare_index_vs_etf_returns.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/convert_to_viewer_csv.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/export_backtest_detail.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/measure_gap_impact.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/verify_cum_return_fix.py (100%) rename {framework_v2 => archive/framework_v2}/scripts/verify_etf_hfq_fix.py (100%) rename {framework_v2 => archive/framework_v2}/shared/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/shared/data/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/shared/data/alignment.py (100%) rename {framework_v2 => archive/framework_v2}/shared/data/flask_api_fetcher.py (100%) rename {framework_v2 => archive/framework_v2}/shared/data/schemas.py (100%) rename {framework_v2 => archive/framework_v2}/shared/factors/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/shared/factors/momentum.py (100%) rename {framework_v2 => archive/framework_v2}/shared/factors/talib_base.py (100%) rename {framework_v2 => archive/framework_v2}/strategies/rotation/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/strategies/rotation/config_simple.yaml (100%) rename {framework_v2 => archive/framework_v2}/strategies/rotation/rotation.py (100%) rename {framework_v2 => archive/framework_v2}/tests/__init__.py (100%) rename {framework_v2 => archive/framework_v2}/tests/test_alignment.py (100%) rename {framework_v2 => archive/framework_v2}/tests/test_config.py (100%) rename {framework_v2 => archive/framework_v2}/tests/test_end_to_end.py (100%) rename {framework_v2 => archive/framework_v2}/tests/test_flask_api_fetcher.py (100%) rename {framework_v2 => archive/framework_v2}/tests/test_flat_asset_pool.py (100%) rename {framework_v2 => archive/framework_v2}/tests/test_momentum_parity.py (100%) rename {scripts => archive/scripts}/export_backtest_detail.py (100%) rename {scripts => archive/scripts}/generate_legacy_report.py (100%) rename {scripts => archive/scripts}/get_trading_calendar.py (100%) rename {scripts => archive/scripts}/run_rotation.py (100%) rename compare_three_versions.py => archive/single_files/compare_three_versions.py (100%) rename compare_v1_v2.py => archive/single_files/compare_v1_v2.py (100%) rename run_rotation.py => archive/single_files/run_rotation_v1.py (100%) rename run_us_rotation.py => archive/single_files/run_us_rotation.py (100%) rename test_api_dates.py => archive/single_files/test_api_dates.py (100%) rename {strategies => archive/strategies}/__init__.py (100%) rename {strategies => archive/strategies}/base.py (100%) rename {strategies => archive/strategies}/rotation/__init__.py (100%) rename {strategies => archive/strategies}/rotation/config.yaml (100%) rename {strategies => archive/strategies}/rotation/strategy.py (100%) rename {strategies => archive/strategies}/shared/__init__.py (100%) rename {strategies => archive/strategies}/shared/data/__init__.py (100%) rename {strategies => archive/strategies}/shared/data/sources.py (100%) rename {strategies => archive/strategies}/shared/factors/momentum.py (100%) rename {strategies => archive/strategies}/shared/risk/controls.py (100%) rename {strategies => archive/strategies}/shared/signals/selectors.py (100%) rename {strategies => archive/strategies}/us_rotation/__init__.py (100%) rename {strategies => archive/strategies}/us_rotation/config.yaml (100%) rename {strategies => archive/strategies}/us_rotation/strategy.py (100%) rename {tests => archive/tests}/test_flask_api_calendar.py (100%) rename {tests => archive/tests}/test_trading_calendar.py (100%) rename {tests => archive/tests}/verify_fix_result.py (100%) rename {tests => archive/tests}/verify_mode_b.py (100%) rename {tests => archive/tests}/verify_premium_calculation.py (100%) rename {visualization => archive/visualization}/__init__.py (100%) rename {visualization => archive/visualization}/charts/__init__.py (100%) rename {visualization => archive/visualization}/charts/indicators.py (100%) rename {visualization => archive/visualization}/charts/kline.py (100%) rename {visualization => archive/visualization}/report_generator/README.md (100%) rename {visualization => archive/visualization}/report_generator/__init__.py (100%) rename {visualization => archive/visualization}/report_generator/generate_report.py (100%) delete mode 100644 visualization/backtest_viewer.html diff --git a/config/settings.py b/archive/config/settings.py similarity index 100% rename from config/settings.py rename to archive/config/settings.py diff --git a/framework/__init__.py b/archive/framework/__init__.py similarity index 100% rename from framework/__init__.py rename to archive/framework/__init__.py diff --git a/framework/config/__init__.py b/archive/framework/config/__init__.py similarity index 100% rename from framework/config/__init__.py rename to archive/framework/config/__init__.py diff --git a/framework/data/__init__.py b/archive/framework/data/__init__.py similarity index 100% rename from framework/data/__init__.py rename to archive/framework/data/__init__.py diff --git a/framework/data/__pycache__/__init__.cpython-312.pyc b/archive/framework/data/__pycache__/__init__.cpython-312.pyc similarity index 100% rename from framework/data/__pycache__/__init__.cpython-312.pyc rename to archive/framework/data/__pycache__/__init__.cpython-312.pyc diff --git a/framework/execution/__init__.py b/archive/framework/execution/__init__.py similarity index 100% rename from framework/execution/__init__.py rename to archive/framework/execution/__init__.py diff --git a/framework/factors/__init__.py b/archive/framework/factors/__init__.py similarity index 100% rename from framework/factors/__init__.py rename to archive/framework/factors/__init__.py diff --git a/framework/risk/__init__.py b/archive/framework/risk/__init__.py similarity index 100% rename from framework/risk/__init__.py rename to archive/framework/risk/__init__.py diff --git a/framework/signals/__init__.py b/archive/framework/signals/__init__.py similarity index 100% rename from framework/signals/__init__.py rename to archive/framework/signals/__init__.py diff --git a/framework/strategy/__init__.py b/archive/framework/strategy/__init__.py similarity index 100% rename from framework/strategy/__init__.py rename to archive/framework/strategy/__init__.py diff --git a/framework/tests/test_execution.py b/archive/framework/tests/test_execution.py similarity index 100% rename from framework/tests/test_execution.py rename to archive/framework/tests/test_execution.py diff --git a/framework/tests/test_factors.py b/archive/framework/tests/test_factors.py similarity index 100% rename from framework/tests/test_factors.py rename to archive/framework/tests/test_factors.py diff --git a/framework/tests/test_integration.py b/archive/framework/tests/test_integration.py similarity index 100% rename from framework/tests/test_integration.py rename to archive/framework/tests/test_integration.py diff --git a/framework/tests/test_risk.py b/archive/framework/tests/test_risk.py similarity index 100% rename from framework/tests/test_risk.py rename to archive/framework/tests/test_risk.py diff --git a/framework/tests/test_signals.py b/archive/framework/tests/test_signals.py similarity index 100% rename from framework/tests/test_signals.py rename to archive/framework/tests/test_signals.py diff --git a/framework/tests/test_strategy.py b/archive/framework/tests/test_strategy.py similarity index 100% rename from framework/tests/test_strategy.py rename to archive/framework/tests/test_strategy.py diff --git a/framework_v2/ALIGNMENT_GUIDE.md b/archive/framework_v2/ALIGNMENT_GUIDE.md similarity index 100% rename from framework_v2/ALIGNMENT_GUIDE.md rename to archive/framework_v2/ALIGNMENT_GUIDE.md diff --git a/framework_v2/ALIGNMENT_SCHEMA_INTEGRATION.md b/archive/framework_v2/ALIGNMENT_SCHEMA_INTEGRATION.md similarity index 100% rename from framework_v2/ALIGNMENT_SCHEMA_INTEGRATION.md rename to archive/framework_v2/ALIGNMENT_SCHEMA_INTEGRATION.md diff --git a/framework_v2/DATA_ARCHITECTURE.md b/archive/framework_v2/DATA_ARCHITECTURE.md similarity index 100% rename from framework_v2/DATA_ARCHITECTURE.md rename to archive/framework_v2/DATA_ARCHITECTURE.md diff --git a/framework_v2/DATA_FLOW_DEMO.md b/archive/framework_v2/DATA_FLOW_DEMO.md similarity index 100% rename from framework_v2/DATA_FLOW_DEMO.md rename to archive/framework_v2/DATA_FLOW_DEMO.md diff --git a/framework_v2/END_TO_END_TEST_REPORT.md b/archive/framework_v2/END_TO_END_TEST_REPORT.md similarity index 100% rename from framework_v2/END_TO_END_TEST_REPORT.md rename to archive/framework_v2/END_TO_END_TEST_REPORT.md diff --git a/framework_v2/FLASK_API_FETCHER_ARCHITECTURE.md b/archive/framework_v2/FLASK_API_FETCHER_ARCHITECTURE.md similarity index 100% rename from framework_v2/FLASK_API_FETCHER_ARCHITECTURE.md rename to archive/framework_v2/FLASK_API_FETCHER_ARCHITECTURE.md diff --git a/framework_v2/FLASK_API_FETCHER_GUIDE.md b/archive/framework_v2/FLASK_API_FETCHER_GUIDE.md similarity index 100% rename from framework_v2/FLASK_API_FETCHER_GUIDE.md rename to archive/framework_v2/FLASK_API_FETCHER_GUIDE.md diff --git a/framework_v2/README.md b/archive/framework_v2/README.md similarity index 100% rename from framework_v2/README.md rename to archive/framework_v2/README.md diff --git a/framework_v2/TRADING_CALENDAR_API_INTEGRATION.md b/archive/framework_v2/TRADING_CALENDAR_API_INTEGRATION.md similarity index 100% rename from framework_v2/TRADING_CALENDAR_API_INTEGRATION.md rename to archive/framework_v2/TRADING_CALENDAR_API_INTEGRATION.md diff --git a/framework_v2/__init__.py b/archive/framework_v2/__init__.py similarity index 100% rename from framework_v2/__init__.py rename to archive/framework_v2/__init__.py diff --git a/framework_v2/config/CONFIG_DESIGN.md b/archive/framework_v2/config/CONFIG_DESIGN.md similarity index 100% rename from framework_v2/config/CONFIG_DESIGN.md rename to archive/framework_v2/config/CONFIG_DESIGN.md diff --git a/framework_v2/config/__init__.py b/archive/framework_v2/config/__init__.py similarity index 100% rename from framework_v2/config/__init__.py rename to archive/framework_v2/config/__init__.py diff --git a/framework_v2/config/loader.py b/archive/framework_v2/config/loader.py similarity index 100% rename from framework_v2/config/loader.py rename to archive/framework_v2/config/loader.py diff --git a/framework_v2/config/rotation_global.yaml b/archive/framework_v2/config/rotation_global.yaml similarity index 100% rename from framework_v2/config/rotation_global.yaml rename to archive/framework_v2/config/rotation_global.yaml diff --git a/framework_v2/config/schemas.py b/archive/framework_v2/config/schemas.py similarity index 100% rename from framework_v2/config/schemas.py rename to archive/framework_v2/config/schemas.py diff --git a/framework_v2/core/__init__.py b/archive/framework_v2/core/__init__.py similarity index 100% rename from framework_v2/core/__init__.py rename to archive/framework_v2/core/__init__.py diff --git a/framework_v2/core/data.py b/archive/framework_v2/core/data.py similarity index 100% rename from framework_v2/core/data.py rename to archive/framework_v2/core/data.py diff --git a/framework_v2/core/executor.py b/archive/framework_v2/core/executor.py similarity index 100% rename from framework_v2/core/executor.py rename to archive/framework_v2/core/executor.py diff --git a/framework_v2/core/factor.py b/archive/framework_v2/core/factor.py similarity index 100% rename from framework_v2/core/factor.py rename to archive/framework_v2/core/factor.py diff --git a/framework_v2/core/signal.py b/archive/framework_v2/core/signal.py similarity index 100% rename from framework_v2/core/signal.py rename to archive/framework_v2/core/signal.py diff --git a/framework_v2/core/strategy.py b/archive/framework_v2/core/strategy.py similarity index 100% rename from framework_v2/core/strategy.py rename to archive/framework_v2/core/strategy.py diff --git a/framework_v2/scripts/backtest_global_rotation.py b/archive/framework_v2/scripts/backtest_global_rotation.py similarity index 100% rename from framework_v2/scripts/backtest_global_rotation.py rename to archive/framework_v2/scripts/backtest_global_rotation.py diff --git a/framework_v2/scripts/compare_index_vs_etf_returns.py b/archive/framework_v2/scripts/compare_index_vs_etf_returns.py similarity index 100% rename from framework_v2/scripts/compare_index_vs_etf_returns.py rename to archive/framework_v2/scripts/compare_index_vs_etf_returns.py diff --git a/framework_v2/scripts/convert_to_viewer_csv.py b/archive/framework_v2/scripts/convert_to_viewer_csv.py similarity index 100% rename from framework_v2/scripts/convert_to_viewer_csv.py rename to archive/framework_v2/scripts/convert_to_viewer_csv.py diff --git a/framework_v2/scripts/export_backtest_detail.py b/archive/framework_v2/scripts/export_backtest_detail.py similarity index 100% rename from framework_v2/scripts/export_backtest_detail.py rename to archive/framework_v2/scripts/export_backtest_detail.py diff --git a/framework_v2/scripts/measure_gap_impact.py b/archive/framework_v2/scripts/measure_gap_impact.py similarity index 100% rename from framework_v2/scripts/measure_gap_impact.py rename to archive/framework_v2/scripts/measure_gap_impact.py diff --git a/framework_v2/scripts/verify_cum_return_fix.py b/archive/framework_v2/scripts/verify_cum_return_fix.py similarity index 100% rename from framework_v2/scripts/verify_cum_return_fix.py rename to archive/framework_v2/scripts/verify_cum_return_fix.py diff --git a/framework_v2/scripts/verify_etf_hfq_fix.py b/archive/framework_v2/scripts/verify_etf_hfq_fix.py similarity index 100% rename from framework_v2/scripts/verify_etf_hfq_fix.py rename to archive/framework_v2/scripts/verify_etf_hfq_fix.py diff --git a/framework_v2/shared/__init__.py b/archive/framework_v2/shared/__init__.py similarity index 100% rename from framework_v2/shared/__init__.py rename to archive/framework_v2/shared/__init__.py diff --git a/framework_v2/shared/data/__init__.py b/archive/framework_v2/shared/data/__init__.py similarity index 100% rename from framework_v2/shared/data/__init__.py rename to archive/framework_v2/shared/data/__init__.py diff --git a/framework_v2/shared/data/alignment.py b/archive/framework_v2/shared/data/alignment.py similarity index 100% rename from framework_v2/shared/data/alignment.py rename to archive/framework_v2/shared/data/alignment.py diff --git a/framework_v2/shared/data/flask_api_fetcher.py b/archive/framework_v2/shared/data/flask_api_fetcher.py similarity index 100% rename from framework_v2/shared/data/flask_api_fetcher.py rename to archive/framework_v2/shared/data/flask_api_fetcher.py diff --git a/framework_v2/shared/data/schemas.py b/archive/framework_v2/shared/data/schemas.py similarity index 100% rename from framework_v2/shared/data/schemas.py rename to archive/framework_v2/shared/data/schemas.py diff --git a/framework_v2/shared/factors/__init__.py b/archive/framework_v2/shared/factors/__init__.py similarity index 100% rename from framework_v2/shared/factors/__init__.py rename to archive/framework_v2/shared/factors/__init__.py diff --git a/framework_v2/shared/factors/momentum.py b/archive/framework_v2/shared/factors/momentum.py similarity index 100% rename from framework_v2/shared/factors/momentum.py rename to archive/framework_v2/shared/factors/momentum.py diff --git a/framework_v2/shared/factors/talib_base.py b/archive/framework_v2/shared/factors/talib_base.py similarity index 100% rename from framework_v2/shared/factors/talib_base.py rename to archive/framework_v2/shared/factors/talib_base.py diff --git a/framework_v2/strategies/rotation/__init__.py b/archive/framework_v2/strategies/rotation/__init__.py similarity index 100% rename from framework_v2/strategies/rotation/__init__.py rename to archive/framework_v2/strategies/rotation/__init__.py diff --git a/framework_v2/strategies/rotation/config_simple.yaml b/archive/framework_v2/strategies/rotation/config_simple.yaml similarity index 100% rename from framework_v2/strategies/rotation/config_simple.yaml rename to archive/framework_v2/strategies/rotation/config_simple.yaml diff --git a/framework_v2/strategies/rotation/rotation.py b/archive/framework_v2/strategies/rotation/rotation.py similarity index 100% rename from framework_v2/strategies/rotation/rotation.py rename to archive/framework_v2/strategies/rotation/rotation.py diff --git a/framework_v2/tests/__init__.py b/archive/framework_v2/tests/__init__.py similarity index 100% rename from framework_v2/tests/__init__.py rename to archive/framework_v2/tests/__init__.py diff --git a/framework_v2/tests/test_alignment.py b/archive/framework_v2/tests/test_alignment.py similarity index 100% rename from framework_v2/tests/test_alignment.py rename to archive/framework_v2/tests/test_alignment.py diff --git a/framework_v2/tests/test_config.py b/archive/framework_v2/tests/test_config.py similarity index 100% rename from framework_v2/tests/test_config.py rename to archive/framework_v2/tests/test_config.py diff --git a/framework_v2/tests/test_end_to_end.py b/archive/framework_v2/tests/test_end_to_end.py similarity index 100% rename from framework_v2/tests/test_end_to_end.py rename to archive/framework_v2/tests/test_end_to_end.py diff --git a/framework_v2/tests/test_flask_api_fetcher.py b/archive/framework_v2/tests/test_flask_api_fetcher.py similarity index 100% rename from framework_v2/tests/test_flask_api_fetcher.py rename to archive/framework_v2/tests/test_flask_api_fetcher.py diff --git a/framework_v2/tests/test_flat_asset_pool.py b/archive/framework_v2/tests/test_flat_asset_pool.py similarity index 100% rename from framework_v2/tests/test_flat_asset_pool.py rename to archive/framework_v2/tests/test_flat_asset_pool.py diff --git a/framework_v2/tests/test_momentum_parity.py b/archive/framework_v2/tests/test_momentum_parity.py similarity index 100% rename from framework_v2/tests/test_momentum_parity.py rename to archive/framework_v2/tests/test_momentum_parity.py diff --git a/scripts/export_backtest_detail.py b/archive/scripts/export_backtest_detail.py similarity index 100% rename from scripts/export_backtest_detail.py rename to archive/scripts/export_backtest_detail.py diff --git a/scripts/generate_legacy_report.py b/archive/scripts/generate_legacy_report.py similarity index 100% rename from scripts/generate_legacy_report.py rename to archive/scripts/generate_legacy_report.py diff --git a/scripts/get_trading_calendar.py b/archive/scripts/get_trading_calendar.py similarity index 100% rename from scripts/get_trading_calendar.py rename to archive/scripts/get_trading_calendar.py diff --git a/scripts/run_rotation.py b/archive/scripts/run_rotation.py similarity index 100% rename from scripts/run_rotation.py rename to archive/scripts/run_rotation.py diff --git a/compare_three_versions.py b/archive/single_files/compare_three_versions.py similarity index 100% rename from compare_three_versions.py rename to archive/single_files/compare_three_versions.py diff --git a/compare_v1_v2.py b/archive/single_files/compare_v1_v2.py similarity index 100% rename from compare_v1_v2.py rename to archive/single_files/compare_v1_v2.py diff --git a/run_rotation.py b/archive/single_files/run_rotation_v1.py similarity index 100% rename from run_rotation.py rename to archive/single_files/run_rotation_v1.py diff --git a/run_us_rotation.py b/archive/single_files/run_us_rotation.py similarity index 100% rename from run_us_rotation.py rename to archive/single_files/run_us_rotation.py diff --git a/test_api_dates.py b/archive/single_files/test_api_dates.py similarity index 100% rename from test_api_dates.py rename to archive/single_files/test_api_dates.py diff --git a/strategies/__init__.py b/archive/strategies/__init__.py similarity index 100% rename from strategies/__init__.py rename to archive/strategies/__init__.py diff --git a/strategies/base.py b/archive/strategies/base.py similarity index 100% rename from strategies/base.py rename to archive/strategies/base.py diff --git a/strategies/rotation/__init__.py b/archive/strategies/rotation/__init__.py similarity index 100% rename from strategies/rotation/__init__.py rename to archive/strategies/rotation/__init__.py diff --git a/strategies/rotation/config.yaml b/archive/strategies/rotation/config.yaml similarity index 100% rename from strategies/rotation/config.yaml rename to archive/strategies/rotation/config.yaml diff --git a/strategies/rotation/strategy.py b/archive/strategies/rotation/strategy.py similarity index 100% rename from strategies/rotation/strategy.py rename to archive/strategies/rotation/strategy.py diff --git a/strategies/shared/__init__.py b/archive/strategies/shared/__init__.py similarity index 100% rename from strategies/shared/__init__.py rename to archive/strategies/shared/__init__.py diff --git a/strategies/shared/data/__init__.py b/archive/strategies/shared/data/__init__.py similarity index 100% rename from strategies/shared/data/__init__.py rename to archive/strategies/shared/data/__init__.py diff --git a/strategies/shared/data/sources.py b/archive/strategies/shared/data/sources.py similarity index 100% rename from strategies/shared/data/sources.py rename to archive/strategies/shared/data/sources.py diff --git a/strategies/shared/factors/momentum.py b/archive/strategies/shared/factors/momentum.py similarity index 100% rename from strategies/shared/factors/momentum.py rename to archive/strategies/shared/factors/momentum.py diff --git a/strategies/shared/risk/controls.py b/archive/strategies/shared/risk/controls.py similarity index 100% rename from strategies/shared/risk/controls.py rename to archive/strategies/shared/risk/controls.py diff --git a/strategies/shared/signals/selectors.py b/archive/strategies/shared/signals/selectors.py similarity index 100% rename from strategies/shared/signals/selectors.py rename to archive/strategies/shared/signals/selectors.py diff --git a/strategies/us_rotation/__init__.py b/archive/strategies/us_rotation/__init__.py similarity index 100% rename from strategies/us_rotation/__init__.py rename to archive/strategies/us_rotation/__init__.py diff --git a/strategies/us_rotation/config.yaml b/archive/strategies/us_rotation/config.yaml similarity index 100% rename from strategies/us_rotation/config.yaml rename to archive/strategies/us_rotation/config.yaml diff --git a/strategies/us_rotation/strategy.py b/archive/strategies/us_rotation/strategy.py similarity index 100% rename from strategies/us_rotation/strategy.py rename to archive/strategies/us_rotation/strategy.py diff --git a/tests/test_flask_api_calendar.py b/archive/tests/test_flask_api_calendar.py similarity index 100% rename from tests/test_flask_api_calendar.py rename to archive/tests/test_flask_api_calendar.py diff --git a/tests/test_trading_calendar.py b/archive/tests/test_trading_calendar.py similarity index 100% rename from tests/test_trading_calendar.py rename to archive/tests/test_trading_calendar.py diff --git a/tests/verify_fix_result.py b/archive/tests/verify_fix_result.py similarity index 100% rename from tests/verify_fix_result.py rename to archive/tests/verify_fix_result.py diff --git a/tests/verify_mode_b.py b/archive/tests/verify_mode_b.py similarity index 100% rename from tests/verify_mode_b.py rename to archive/tests/verify_mode_b.py diff --git a/tests/verify_premium_calculation.py b/archive/tests/verify_premium_calculation.py similarity index 100% rename from tests/verify_premium_calculation.py rename to archive/tests/verify_premium_calculation.py diff --git a/visualization/__init__.py b/archive/visualization/__init__.py similarity index 100% rename from visualization/__init__.py rename to archive/visualization/__init__.py diff --git a/visualization/charts/__init__.py b/archive/visualization/charts/__init__.py similarity index 100% rename from visualization/charts/__init__.py rename to archive/visualization/charts/__init__.py diff --git a/visualization/charts/indicators.py b/archive/visualization/charts/indicators.py similarity index 100% rename from visualization/charts/indicators.py rename to archive/visualization/charts/indicators.py diff --git a/visualization/charts/kline.py b/archive/visualization/charts/kline.py similarity index 100% rename from visualization/charts/kline.py rename to archive/visualization/charts/kline.py diff --git a/visualization/report_generator/README.md b/archive/visualization/report_generator/README.md similarity index 100% rename from visualization/report_generator/README.md rename to archive/visualization/report_generator/README.md diff --git a/visualization/report_generator/__init__.py b/archive/visualization/report_generator/__init__.py similarity index 100% rename from visualization/report_generator/__init__.py rename to archive/visualization/report_generator/__init__.py diff --git a/visualization/report_generator/generate_report.py b/archive/visualization/report_generator/generate_report.py similarity index 100% rename from visualization/report_generator/generate_report.py rename to archive/visualization/report_generator/generate_report.py diff --git a/visualization/backtest_viewer.html b/visualization/backtest_viewer.html deleted file mode 100644 index c04f353..0000000 --- a/visualization/backtest_viewer.html +++ /dev/null @@ -1,714 +0,0 @@ - - - - - -ETF轮动策略回测回放器 - - - - -
-
ETF 轮动策略回测回放器
-
加载 backtest_detail.json 开始回放
- - -
-
- -
-
- - - - -
- -
- - - - - - - 速度: - - -
- -
- -
- -
- -
-
-

当日持仓

-
-
-
-

全部标的排名 (按动量排序)

-
- - - - - - - - - - - - - - - - - - -
#代码名称大类动量阈值指数价ETF价指数收益ETF收益溢价率持仓
-
-
-
- -
-
- - - -