Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Why so many transactions in sample algorithm?

I'm brand new to this so please forgive my newbie question....

I ran the "Sample Mean Reversion Algorithm" and was looking at the backtest results. Why are there so many transactions per security, at so many different prices, and many times throughout the day? I see thousands of transactions, why isn't there a simple Buy x shares of ABC on Monday, Sell x shares of ABC the following Monday in the transaction log. How would I adjust the algorithm to reflect this? Thanks.

1 response

If I'm not mistaken, I believe it is due to liquidity of that security. If you kept the sample algo at the default $1 Million, that may be a cause for high volume orders that can't fill in 1 bar, and are filled in another... which would result in your situation.