Skip to content

Instantly share code, notes, and snippets.

@vazexqi
Created May 17, 2012 06:36
Show Gist options
  • Save vazexqi/2717020 to your computer and use it in GitHub Desktop.
Save vazexqi/2717020 to your computer and use it in GitHub Desktop.
Sequential analysis for stock
public void doAnalysisSequential() {
StockDataCollection nyseData = loadNyseData();
StockDataCollection nasdaqData = loadNasdaqData();
StockDataCollection mergedMarketData = mergeMarketData(Arrays.asList(nyseData, nasdaqData));
StockDataCollection normalizedMarketData = normalizeData(mergedMarketData);
StockDataCollection fedHistoricalData = loadFedHistoricalData();
StockDataCollection normalizedHistoricalData = normalizeData(fedHistoricalData);
StockAnalysisCollection analyzedStockData = analyzeData(normalizedMarketData);
MarketModel modeledMarketData = runModel(analyzedStockData);
StockAnalysisCollection analyzedHistoricalData = analyzeData(normalizedHistoricalData);
MarketModel modeledHistoricalData = runModel(analyzedHistoricalData);
compareModels(Arrays.asList(modeledMarketData, modeledHistoricalData));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment