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

Ensure bar size != 1day works #22

Closed
ogallagher opened this issue Aug 27, 2021 · 1 comment
Closed

Ensure bar size != 1day works #22

ogallagher opened this issue Aug 27, 2021 · 1 comment

Comments

@ogallagher
Copy link
Owner

I’ve only tested with 1-day trade bars for market samples so far, but want to support other bar sizes.

@ogallagher
Copy link
Owner Author

As of now I fixed marketsense.persistent.TradeBar.convertTimeSeries to handle datetimes in addition to dates, but the issue becomes making sure that the sample has enough bars to have at least 1 within the sample and 1 future to guess at. This has always been a minor problem with daily bars, but is now much worse and can cause an IndexOutOfBoundsException for hourly bars, as the number of closed market hours between, for example, Friday and Monday is so many.

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

1 participant