return optimizer.learn();
}
public static double getMedianHighOpenSpread(String symbol, int days) throws Exception {
YahooQuoteFetcher yahooFetcher = new YahooQuoteFetcher();
String quoteStr = yahooFetcher.fetchQuotes(symbol, days, 60*60*24);
List<Quote> dailyQuoteList = yahooFetcher.parseQuotes(quoteStr, 60*60*24);
DescriptiveStatistics stats = new DescriptiveStatistics();
for(Quote quote : dailyQuoteList) {
stats.addValue(quote.getHigh().subtract(quote.getOpen()).doubleValue());