Administrator
4 天以前 1f69a007aa50b04a55195083970c110954935dfd
strategy/time_series_backtest.py
@@ -1,3 +1,5 @@
import logging
import constant
from code_attribute import gpcode_manager, code_nature_analyse
from strategy.data_analyzer import KPLLimitUpDataAnalyzer
@@ -715,11 +717,14 @@
                    if block_in_datas:
                        stock_variables.资金流入板块 = block_in_datas
                    stock_variables.当前价 =  big_order[1][4]
                    compute_result = self.__run_backtest(code, stock_variables)
                    # print(compute_result)
                    self.__process_test_result(code, stock_variables, next_trade_day, big_order[1][4],
                                               huaxin_util.convert_time(big_order[1][3]), compute_result)
                    stock_variables.当前价 = big_order[1][4]
                    try:
                        compute_result = self.__run_backtest(code, stock_variables)
                        # print(compute_result)
                        self.__process_test_result(code, stock_variables, next_trade_day, big_order[1][4],
                                                   huaxin_util.convert_time(big_order[1][3]), compute_result)
                    except Exception as e:
                        logging.exception(e)
        print("可买题材:", all_new_plates)