Hi all,
First post here. I'm fairly new to python but not new to trading. I've coded something simple to get acquainted to Quantopian and I am hopelessly stuck. My code runs fine when I am backtesting with daily data. However, when I enable the schedule_function (currently wrapped in """s) and run it on the minute level, I get an attribute error:
'SIDData' object has no attribute 'price' There was a runtime error on line 39.
The worst part is I can't figure out why. Also, I should add that I did manage to get the backtest to run on the minute level yesterday. However, the trades were completely different from the daily backtest. More specifically, the strategy went long TLT in late-2002 and no other trades occurred afterwards. I thought perhaps it was my settings within the schedule_function so I played around with the time_rules...and now it's giving me error messages that I never got before.
As I've said, I am new to python, so any help would be greatly appreciated!