I started with Joe's long over MA cross-over strategy and in starting to add some more, but seeing issues in debugging, I wanted to plot the quantity of shares held at any moment in time. It looks like there are many days when the full quantity is not being bought or sold properly, even though it is only 300 shares. On a daily chart, that seems improbably that zipline would say it couldn't do a full buy or sell of 300 shares.
Take a look at the variable plot of qty_held to see what I mean. I expected a "binary" response of 300 shares or zero.
But, looking at other metrics, some appear to show the transactions being either +300 or -300. I have seen similar odd things in the transactions plot that also don't appear to match what I would expect, but show partials.
Maybe I have something bad in my algorithm copy. Note, I do get a dialog box often that says:
"Sorry, an error happened when saving your algorithm."
Thoughts?
Regards,
Ken