Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
def nhnl(lastDays=40, beginDate='2012-04-01'):
    stocks = findAllExistentTickers()
    return computeNhnlIndexWithinRangeWithStocks(stocks, lastDays, 1,
                                                 beginDate)
Пример #4
0
def nhnl(lastDays=40,beginDate='2012-04-01'):
    stocks = findAllExistentTickers()
    return computeNhnlIndexWithinRangeWithStocks(stocks,lastDays,1,beginDate)