def pb1(): from dao.stockdao import getPbLessThan1 from dao.stockdao import findAllExistentTickers list = getPbLessThan1() allQuotes = findAllExistentTickers() c1 = float(len(list)) print c1 print len(allQuotes) return c1 / len(allQuotes)
def pb1(): from dao.stockdao import getPbLessThan1 from dao.stockdao import findAllExistentTickers list = getPbLessThan1(); allQuotes = findAllExistentTickers() c1 = float(len(list)) print c1 print len(allQuotes) return c1/len(allQuotes)
def nhnl(lastDays=40, beginDate='2012-04-01'): stocks = findAllExistentTickers() return computeNhnlIndexWithinRangeWithStocks(stocks, lastDays, 1, beginDate)
def nhnl(lastDays=40,beginDate='2012-04-01'): stocks = findAllExistentTickers() return computeNhnlIndexWithinRangeWithStocks(stocks,lastDays,1,beginDate)