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')
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')