Skip to content

Error out on drawdown_split #12

@ben1628

Description

@ben1628

Running the Backtest in your readme.md (without any modification), I ran into this problem

def drawdown_split(x):
nonlocal dd_group
if dd[x] == 0: <-------------error out on this line
dd_group += 1
return dd_group

The truth value of a Series is ambiguos. Use a.empty, a.bool(), a.item()...

Any suggestion.

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