Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error out on drawdown_split #12

Open
ben1628 opened this issue Jan 30, 2021 · 1 comment
Open

Error out on drawdown_split #12

ben1628 opened this issue Jan 30, 2021 · 1 comment

Comments

@ben1628
Copy link

ben1628 commented Jan 30, 2021

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.

@Heerozh
Copy link
Owner

Heerozh commented Jan 31, 2021

look strange, which pandas version are u using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants