Hello,
I am new to Quantopian and to programming, but I have extensive trading experience. I coded a simple day trading strategy based on the simple moving average. If 20 min SMA> 50 min SMA, it puts 20% of my portfolio into the trade, Apple. If 50 min SMA> 20 min SMA, it closes out any positions I have in AAPL, and maintains no positions.
The problem is that when I run a full back test for the month of May, it shows a total return of -15.7%, but when i look at "Transactions Details", and visually see my trades and see the times it bought and sold and and what price, the loss shouldn't be drastic. In fact it may have a profit (I didn't calculate the exact P&L but looking at every day, I know my return would be a -15.7%). Any input or advice would be appreciated.
Thanks