Hi everyone,
I am attempting to use a sample algorithm to buy/sell depending on moving average crossovers. I was hoping someone would be able to look at my code and tell me why my back-test only has one transaction. Based on the number of moving average crossovers there should have been more than one transaction.
Also note that I have attempted to modify this code so that short selling is not possible.
Let me know if you can be of any help.
Thanks,
Joe