Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Trading Regression Example
def trading_example():
This method creates a set of regression analyses based on technical trading details (price)
# b: blue, g: green, r: red, c: cyan, m: magenta, y: yellow, k: black, w: white
statsmodels_args_trade = StatsModelsSettings(1, True)
quandl_args_trade = QuandlSettings(350, 4, "weekly")
regressions_trade = [RegressionAnalysis("GOOG/NASDAQ_GOOG", quandl_args_trade, statsmodels_args_trade, 'b'),
RegressionAnalysis("GOOG/NASDAQ_YHOO", quandl_args_trade, statsmodels_args_trade, 'g')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment