Skip to content

And debug guide for nan result? #857

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

Closed
eromoe opened this issue Jan 2, 2023 · 1 comment
Closed

And debug guide for nan result? #857

eromoe opened this issue Jan 2, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@eromoe
Copy link

eromoe commented Jan 2, 2023

I am backtesting BTC price in minute( every minute predict next 15 minute pct return), strategy is from https://kernc.github.io/backtesting.py/doc/examples/Trading%20with%20Machine%20Learning.html
But the result stats are nan .

I can confirm that are many buy & sell triggered :
image

This is confusing, I need clue to debug the problem

@eromoe eromoe changed the title And debug guide? And debug guide for nan result? Jan 2, 2023
@eromoe eromoe closed this as completed Jan 2, 2023
@kernc
Copy link
Owner

kernc commented Jan 3, 2023

This has got to do with btc price around nearing 60k but only starting with 10k of cash, so not a single unit can be bought. See #134.

@kernc kernc added the duplicate This issue or pull request already exists label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants