Skip to content
Discussion options

You must be logged in to vote

If your order book data can be packed into one or more NumPy arrays and you can write your strategy as an iterative process from point A to point B in time, then why not: create a callback for Portfolio.from_order_func that at each timestamp reads the data and instructs vectorbt to order something. The vectorbt's approach is not that different from that of traditional backtesters.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kayne88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants