| | |
| | | import logging |
| | | |
| | | import constant |
| | | from code_attribute import gpcode_manager, code_nature_analyse |
| | | from strategy.data_analyzer import KPLLimitUpDataAnalyzer |
| | |
| | | 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) |
| | | |