Skip to content

Backtest oddity #796

Answered by MarkSurfNZ
rorymac asked this question in Q&A
Oct 5, 2022 · 4 comments · 7 replies
Discussion options

You must be logged in to vote

The following relates to the original question regarding returns flowing past the last data date, not the Mongo/artic discussion:

Pysys ver 1.47
I have found the issue; and, yes, it does relate to costs.
For reference, I am running a back test using one instrument, BUXL, with the momentum16 rule, using data from 2000-01-01 to 2022-09-19.
When the back test gets to the point where it shows the message, “Calculating buffered subsystem positions” the problem occurs in the _pseudo_fills_for_year method of the pandlCalculationWithCashCostsAndFills class, at line 114 of the pandl_cash_costs.py module. This method creates a date list for each year by generating the same number of equally-spaced …

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@rorymac
Comment options

@robcarver17
Comment options

@rorymac
Comment options

@MarkSurfNZ
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rorymac
Comment options

Comment options

You must be logged in to vote
2 replies
@robcarver17
Comment options

@MarkSurfNZ
Comment options

Answer selected by rorymac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants