PositionLong¶
- class czsc.objects.PositionLong(symbol: str, hold_long_a: float = 0.5, hold_long_b: float = 0.8, hold_long_c: float = 1.0, long_min_interval: Optional[int] = None, cost: float = 0.003, T0: bool = False)[source]¶
Bases:
objectAttributes Summary
返回状态对应的仓位
Methods Summary
评估操作表现
operates_to_pair(operates)返回买卖交易对
update(dt, op, price, bid[, op_desc])更新多头持仓状态
Attributes Documentation
- pos¶
返回状态对应的仓位
Methods Documentation