Administrator
2024-11-27 b3cbf38bc431f911b24550db19c68bba2872b09b
净流入大单计算改变
3个文件已修改
19 ■■■■■ 已修改文件
third_data/custom_block_in_money_manager.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/buy_radical/block_special_codes_manager.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/buy_radical/radical_buy_data_manager.py 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
third_data/custom_block_in_money_manager.py
@@ -33,6 +33,10 @@
        code = item[0]
        if code not in self.__code_money_dict:
            self.__code_money_dict[code] = 0
        if not tool.is_ge_code(code) and item[2][2] < 299e4:
            return
        if tool.is_ge_code(code) and item[2][2] < 299e4 and item[2][1] < 290000:
            return
        if item[1] == 0:
            self.__code_money_dict[code] += item[2][2]
        else:
trade/buy_radical/block_special_codes_manager.py
@@ -195,4 +195,4 @@
if __name__ == "__main__":
    # print(datas)
    pass
    update_block_special_codes()
trade/buy_radical/radical_buy_data_manager.py
@@ -529,16 +529,19 @@
        # 包含高位板的整体排序
        all_history_index, all_history_before_codes_info = cls.__get_history_index(code, block, set(),
                                                                                   ignore_open_limit_up=False)
        all_history_before_codes = [x[0] for x in all_history_before_codes_info]
        history_index_first, history_before_codes_info_first = cls.__get_history_index(code, block, yesterday_limit_up_codes, ignore_open_limit_up=False)
        all_history_before_codes = [x[0] for x in history_before_codes_info_first]
        if not constant.TEST:
            # 前两个代码是否有炸板
            dif_codes = set(all_history_before_codes[:2]) - set(current_before_codes[:2])
            if dif_codes:
                return False, f"前2代码有炸板:{dif_codes}, 前排代码:{all_history_before_codes}"
            # dif_codes = set(all_history_before_codes[:2]) - set(current_before_codes[:2])
            # if dif_codes:
            #     return False, f"前2代码有炸板:{dif_codes}, 前排代码:{all_history_before_codes}"
            # 前排代码炸板不能>=2个
            # 前排首板代码炸板数量在2个及以上不能买
            dif_codes = set(all_history_before_codes) - set(current_before_codes)
            if len(dif_codes) >= 2:
                return False, f"板块前排有{len(dif_codes)}个炸板"
                return False, f"板块前排首板有{len(dif_codes)}个炸板"
        exclude_codes = set()
        for x in current_before_codes_info: