TradersPerformance¶
- class czsc.traders.TradersPerformance(traders_pat)[source]¶
Bases:
objectTrader Strategy 的效果评估
Methods Summary
get_holds(sdt, edt)获取一段时间内的所有持仓信号
get_pairs(sdt, edt)获取一段时间内的所有交易对
Methods Documentation
- get_holds(sdt, edt)[source]¶
获取一段时间内的所有持仓信号
- Parameters:
sdt – 开始时间
edt – 结束时间
- Returns:
- 返回数据样例如下
dt symbol long_pos n1b
0 2020-01-02 09:45:00 000001.SH 0 0.004154 1 2020-01-02 10:00:00 000001.SH 0 0.001472 2 2020-01-02 10:15:00 000001.SH 0 0.001291 3 2020-01-02 10:30:00 000001.SH 0 0.001558 4 2020-01-02 10:45:00 000001.SH 0 -0.001355