Suggestions welcome on this simple algorithm that takes my son's stock club picks and uses them within the Quantopian simulation. Yes, they are play-trading and the platform is here: http://www.democrat-chroniclesms.com/
What They Wanted
Well, they just wanted to see the graphs mainly over time, but they were also interested in how they might be rated by financial metrics which Quantopian generates during backtests. They loved seeing the graphs over the 12 weeks session.
What I Wanted
Sneakily, I wanted to engage them a bit and introduce them to algorithms. Gently, they eventually deduced how the decisions they were making could be modeled in an algorithm.
What We Found
The results puzzled me as my naive assumption was that this method would give the same results of the simulator. However, they were very different. The cause could be related to their market trading platform or Quantopian's simulation... or very possibly the algorithmic approach. Perhaps the slippage model is incorrect?. The algorithm is attached for comments. It basically sets limit orders at the start of the trading day for each stock traded that day.
Questions
1. Why is the cost basis greater than the limit order price?
2. Why are the overall results different than the market simulator? For instance, their max return was ~15% and their final return was ~3%.
Conclusions
Well they liked the concept of algorithmic trading and had lots of questions about the program and whether it was really possible to make real trades with algorithms. And I get a chance to learn a bit more about comparing simulators.