コード例 #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
ファイル: index.py プロジェクト: rainly/stocktrace
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
ファイル: index.py プロジェクト: rainly/stocktrace
def nhnl(lastDays=40,beginDate='2012-04-01'):
    stocks = findAllExistentTickers()
    return computeNhnlIndexWithinRangeWithStocks(stocks,lastDays,1,beginDate)