Hi guys,
All of a sudden an algo I've been working on for weeks started reporting bewildering results. Narrowing it down, I found that a function
I wrote to calculate lows and highs for a period was returning gibberish, or rather the lows and highs were identical
From the debugger here are results:
highs = history(5, '1m', 'high').dropna(axis=1)
highs
DataFrame:
Equity(8554 [SPY])
2015-09-23 19:57:00+00:00 193.82
2015-09-23 19:58:00+00:00 193.81
2015-09-23 19:59:00+00:00 193.79
2015-09-23 20:00:00+00:00 193.78
2015-09-24 13:31:00+00:00 192.28
lows = history(5, '1m', 'low').dropna(axis=1)
lows
DataFrame:
Equity(8554 [SPY])
2015-09-23 19:57:00+00:00 193.82
2015-09-23 19:58:00+00:00 193.81
2015-09-23 19:59:00+00:00 193.79
2015-09-23 20:00:00+00:00 193.78
2015-09-24 13:31:00+00:00 192.28
Any body else see this? I am running this on Sunday at 3:33pm EST 10/4/2015.
Thanks
Serge