Skip to content

总是报错TradeBehaviorError: You cannot sell first when you never buy,是什么问题? #184

@ljztrust

Description

@ljztrust

我的交易单结构如下:

  | date | 000390 | 001300 | 001487 | 001605 | 001938 | 002258 | 002943 | 004241 | 004997 | 005598 -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- 2021-10-08 | 1000.000 | 1000.000 | 1000.000 | 1000.000 | 1000.000 | NaN | NaN | NaN | NaN | NaN 2022-05-05 | -0.005 | -0.005 | -0.005 | -0.005 | -0.005 | 1000.0 | 1000.0 | 1000.0 | 1000.0 | 1000.0

运行sys = xa.mul(status=df_jihua) ,就出现报错,所没有买过的股票不能卖出,可是我明明都买了呀!哪位大神帮我看看,小弟不甚感激!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions