Hi all,
I'm relatively new to the Quantopian world, and thought I'd try out a very simple strategy using some moving averages after having intuitively noticed some patterns in charts I've looked at. Would love some feedback on my code, how to improve it, how to make it more accurate, how to make it more readable, and also how to improve my strategy and logic to fix any mistakes or assumptions. All in all, just general feedback for someone pretty new would be much appreciated.
One question I have is about the position values. I noticed that a ways into the backtest I start going negative in my cash balances — how do I avoid this? I would ideally like to develop positions that don't require "leveraged" or "margin" positions.
Any input greatly appreciated!
(By the way: Love this community. Good to finally be posting after having seen some great work from others.)