From 6231401b71dc50a08e13b88a72d7fc9aff962972 Mon Sep 17 00:00:00 2001 From: aszerW Date: Mon, 11 May 2026 23:46:12 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=9E=E6=B5=8B=E6=89=A7=E8=A1=8C=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c308aa5..be53ac6 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,20 @@ portfolio = executor.execute(signals, data) ## 快速开始 -### 1. 使用新框架 +### 1. 运行回测 + +```bash +# 使用默认配置 +python run_rotation.py + +# 指定配置文件 +python run_rotation.py --config config/strategies/rotation.yaml + +# 指定报告保存路径 +python run_rotation.py --save-path results/my_rotation +``` + +### 2. 代码方式使用框架 ```python from framework import FactorBase, FactorRegistry, SignalGenerator, StrategyBase @@ -158,7 +171,7 @@ selector = TopNSelector( signals = selector.generate(factor_data) ``` -### 2. 运行测试 +### 3. 运行测试 ```bash # 框架单元测试