Replies: 1 comment 1 reply
-
Please try with v0.6.3 (just released) as it features multiple bug fixes and improvements! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I ran my first backtest to end up without money haha! a classic! My prediction algo is not too bad with about 71% precision classification-wise, so I'm wondering whether I'm using the backtesting library incorrectly ... it looks to me like an alignment issue, I use the indicators at the current hour to predict price movements on the next hour.
This is an example snapshot of my backtest:

I see the true and predicted targets to match (first true and pred spike below which indicate a bull run of more than half a percent) but the actual trade result shows like two steps ahead. I am not understanding that and I am sure this has been discussed extensively but can't find the relevant discussions so here I go again.
My algo is set to predict 1h XRP price movements of at least 0.5% so half percent movement which is about the 80% and 20%, upper and lower price returns quantiles respectively. I then do this super simple Trading next implementation using my predictions. I maybe should , in addition to the classification performance, also manually compute the hit rate to compare with the backtest results.
Oh I can't attach the full backtest, html is not supported ... bummer!
UPDATE
here are my bull and bear confusion matrices (not too bad)
the algo is able to predict 24 bull runs perfectly, and 103 false-positives (out of which some may be still positive some not)
[[944 103]
[382 24]]
the other algo is able to predict 50 bear runs perfectly, and 139 false-positives (out of which some may be still negative some not)
[[899 139]
[365 50]]
False-negatives aren't bad because I wouldn't enter a position (or missed opportunity) but also don't lose any money. However, I need to keep an eye on the false-positives as they mean I enter a trade/position and could be incorrect, for instance, a negative return while expecting a bull run.
UPDATE
It is definitely a misalignment, if I make my predictions / forecasts the true values I still lose all the money ... so need to find a way to align the data somehow.
Beta Was this translation helpful? Give feedback.
All reactions