Open warren-oneill opened 9 years ago
When I run the following code
source = RandomWalkSource(start_prices = {'TEST' : 50}, start=start, end=end) algo = TradingAlgorithm(initialize=initialize, handle_data=handle_date) results = algo.run(source)
and record the values generated for 'TEST' then I always get a NaN for the first trading day.
I think this might be due to the fact that record() has nothing to record on the intial day.
When is your start date?
@devanp92 can't remember and don't have the code anymore. Why do you ask?
When I run the following code
and record the values generated for 'TEST' then I always get a NaN for the first trading day.