當前位置: 首頁>>代碼示例>>Python>>正文


Python MA.analyze方法代碼示例

本文整理匯總了Python中MA.analyze方法的典型用法代碼示例。如果您正苦於以下問題:Python MA.analyze方法的具體用法?Python MA.analyze怎麽用?Python MA.analyze使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MA的用法示例。


在下文中一共展示了MA.analyze方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: analyze

# 需要導入模塊: import MA [as 別名]
# 或者: from MA import analyze [as 別名]
def analyze(stock_code, date):
    total_score = 0.0
    total_score += BBI.analyze(stock_code, date, BBI_PARM_PERIOD_TRACE_FOR_HIGH, BBI_PARM_PERIOD_TRACE_HIS)[0]
    total_score += BIAS.analyze(stock_code, date)[0]
    total_score += BOLL.analyze(stock_code, date, BOLL_PARM_PERIOD)[0]
    total_score += BRAR.analyze(stock_code, date, BRAR_PARM_PERIOD_HIS)[0]
    total_score += CCI.analyze(stock_code, date, CCI_PARM_PERIOD)[0]
    total_score += DMA.analyze(stock_code, date, DMA_PARM_PERIOD)[0]
    total_score += DMI.analyze(stock_code, date, DMI_PARM_PERIOD)[0]
    total_score += KDJ.analyze(stock_code, date)[0]
    total_score += MA.analyze(stock_code, date, MA_PARM_PERIOD)[0]
    total_score += OBV.analyze(stock_code, date, OBV_PARM_PERIOD_TRACE_HIS)[0]
    total_score += PSY.analyze(stock_code, date)[0]
    total_score += ROC.analyze(stock_code, date, ROC_PARM_PERIOD_TRACE_HIS)[0]
    total_score += RSI.analyze(stock_code, date, RSI_PARM_PERIOD_TRACE_HIS)[0]
    total_score += VR.analyze(stock_code, date)[0]
    total_score += WR.analyze(stock_code, date, WR_PARM_PERIOD_TRACE_HIS)[0]

    bd.updateAnalysisData("TOTAL_SCORE", str(total_score), stock_code, date)
開發者ID:A1eXFei,項目名稱:StockMarket,代碼行數:21,代碼來源:StockAnalyst.py


注:本文中的MA.analyze方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。