Thanks so much for the reply/help here, the LR from scipy and numpy.amax seem to be behaving much more as expected than the built in ta. functions.
I still don't fully comprehend what
prices = history(15, '1d', 'price').ix[:-1] # 14-day trailing window, daily closing prices
is doing. I looked at the documentation and even that is a little over my head. Can you (or someone) break this down for me a bit more?
My guess:
history( ) is is my window
15 is the length of my window going back
1d is this taking all of the minute data into account for each day and compiling it as a single OHLC daily bar?
price returns the last price of that bar?
.ix I'm not sure.
[:-1] returns the current day(bar)?
And by setting it up like this, it will naturally give the linregress, and amax (or whatever else calls upon it) a window of 15?
Oh, and by setting up the trading time, is that essentially telling it when to compile the minute data into daily data?
Example, if I wanted to compile 15 minute bars, could I use this method?