Please help me with some basic questions. I want to use the Research environment to do some analysis on a pair of securities. My task requires that I examine performance differences between these two highly uncorrelated securities during historical market swoons, corrections and crashes. I desire to examine historical data over relatively short date ranges, from a few days to perhaps six weeks. I want to catalog and statistically characterize the relative behavior of this pair of securities during 15 to 20 such market dips. Especially when studying events of only a few days duration, I will want to generate moving averages using data bars of less than one day. Probably 15 minute to 30 minute bars would capture the behavior I hope to observe.
Note that the object of this study is preliminary research, for the purpose of setting some buy and sell signal parameters to be used in a trading algorithm, eventually. Several factors make the Quantopian Research environment potentially a good place to do this work, if it is possible, namely:
The availability of the pandas library means that at least some of the statistical number crunching - as opposed to simple data extraction - could probably be performed in the Research environment.
Quantopian prominently states, "We have minute-bar historical data for US equities and US futures since 2002 up to the most recently completed trading day." I need some of that data for my analysis to be meaningful.
The research environment's ability to make charts, critical for visually verifying the date ranges to be studied, appears to be up to the task.
Here's the rub: I see no evidence that the data.history object is available in the Research environment. Please tell me this is not so! I can find no working example of code using data.history that runs in the Research environment. If there is one, please direct me to it and that will be all I need for now. As far as I can tell, get_pricing is the main available tool in the Research environment, and that offers only daily close prices. Please tell me, how am I to access the 15- and 30-minute data I need?
On July 27, 2016, In a response to a question by "Adam," Nathan Wolfe said, "Algorithm code can't be run directly in Research." (https://www.quantopian.com/posts/name-context-is-not-defined-in-research-notebook). What does this mean, precisely? If the "initialize" and "handle_data" functions are unavailable in the Research environment, then I would like to know some other way of accessing minute-bar data. I don't see my current research naturally taking the form of a trading algoritm, so I am a bit stuck. Is there a way to access minute-bar data in the Research environment using a pipeline? That would interest me. Could you point me to examples? Thank you.