Ejemplo n.º 1
0
def each_stock_strategy(stockCsvPath, stock_code):
    plt.figure()
                
    r = native_data.getCsvDataByFullPath(stockCsvPath)
    dif_price, dea_price, macd_price = macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'MACD')
    ama_price = macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'AMA')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'MA')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'DMA')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'MACD')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'TRIX')
Ejemplo n.º 2
0
def each_stock_strategy(stockCsvPath, stock_code):
    plt.figure()

    r = native_data.getCsvDataByFullPath(stockCsvPath)
    dif_price, dea_price, macd_price = macd_back_test.getMAStrategy(
        stockCsvPath, stock_code, 'MACD')
    ama_price = macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'AMA')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'MA')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'DMA')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'MACD')
    macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'TRIX')
Ejemplo n.º 3
0
def live_stock_strategy(stockCsvPath, stock_code):
    r = native_data.getCsvDataByFullPath(stockCsvPath)
    dif_price, dea_price, macd_price = macd_back_test.getMAStrategy(
        stockCsvPath, stock_code, 'MACD')
    ama_price = macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'AMA')
Ejemplo n.º 4
0
def live_stock_strategy(stockCsvPath, stock_code):
    r = native_data.getCsvDataByFullPath(stockCsvPath)
    dif_price, dea_price, macd_price = macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'MACD')
    ama_price = macd_back_test.getMAStrategy(stockCsvPath, stock_code, 'AMA')