Skip to content

Commit 855a68f

Browse files
committed
move to draft
1 parent 667f46a commit 855a68f

File tree

6 files changed

+93
-43
lines changed

6 files changed

+93
-43
lines changed

source/_posts/quant/量化交易核心策略开发/cp4.md renamed to source/_drafts/量化交易核心策略开发/cp4.md

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,64 @@ TqSDK举例。
5959
- Carry策略
6060

6161

62+
----------
6263

64+
from 《python量化交易》
65+
66+
国内常用的量化交易策略:
67+
68+
- CTA策略(期货)
69+
70+
CTA: Commodity Trading Advisor, 商品交易顾问
71+
72+
大体可以分为三种:
73+
74+
+ 趋势跟踪策略(70%)
75+
76+
追涨杀跌,通过快速止损实现“大赚小亏”。
77+
根据时间级别不同,可以分为日内短线策略,日间中长线策略等
78+
79+
+ 价差套利(均值回归)策略(25%)
80+
81+
捕捉不合理价差,买入低估的,卖出高估的。一般风险小,回报稳定。
82+
根据品种细分:
83+
84+
* 跨期套利
85+
* 期限套利
86+
* 跨品种套利
87+
* 跨市场套利
88+
89+
90+
+ 趋势反转(逆趋势)策略(5%)
91+
92+
预测反转点。 传统上用头肩形态、突破形态、交易量等作为反转指标。
93+
94+
- Alpha策略(股票)
95+
96+
97+
98+
- 波动率套利策略(期权)
99+
100+
101+
102+
- 高频交易策略
103+
104+
105+
Q quant: 风险中性测度, 重模型轻数据。 应用:模型固定,用数据精练模型参数
106+
P quant: 真实概率测度, 重数据轻模型。 应用:若干模型,用数据选择模型
107+
108+
国内:P强Q弱
109+
110+
111+
112+
113+
TODO:
114+
115+
116+
117+
118+
119+
----------
63120

64121

65122
最后,用 GA (General Algorithm) 进行参数优化
@@ -73,8 +130,42 @@ TqSDK举例。
73130

74131
常用的统计指标包括:
75132

76-
-
133+
- 回报率
134+
135+
RR, Return of Rate. 回报率。 策略在一定时期内的盈亏。
136+
137+
TP = 总盈利-总亏损
138+
RR = TP/INV * 100%
139+
140+
INV: 初始资本
141+
142+
- 盈亏比
143+
144+
- 最大回撤
77145

146+
- 胜率
147+
148+
- 索提诺比率
149+
150+
Sortino Ratio
151+
152+
- 夏普比率
153+
154+
Sharp Ratio
155+
156+
- 偏度
157+
158+
相同 sharp ratio, 偏度可能不同
159+
160+
偏度决定了风险暴露
161+
162+
163+
164+
- Beta值
165+
166+
- 詹森阿尔法
167+
168+
Jensen's Alpha
78169

79170

80171
# 策略开发流程
@@ -85,7 +176,7 @@ TqSDK举例。
85176
+ 自适应的算法
86177
+ 简单的交易逻辑
87178
+ 鲁棒的设计
88-
179+
89180
1. 提出假设
90181

91182
2. 建立交易策略
-39.5 KB
Binary file not shown.

复式统计表与数据可视化/doc.md

Lines changed: 0 additions & 41 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)