Pardon my ignorance as this is my first post and I only just got interested in Quant Trading. I was trying to see the returns of dollar cost averaging (buying SPY at the start of each month). However, for some reason, my four line code is not behaving as expected. There are lots of missing transactions if you look at the transaction log. Can someone please point out where am I making a mistake ?
Thanks