huaxin_client/l2_client_test.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
trade/buy_radical/radical_buy_data_manager.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
trade/buy_radical/radical_buy_strategy.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
huaxin_client/l2_client_test.py
@@ -104,7 +104,7 @@ if last_buy_order[2] > 299e4: self.big_accurate_buy_order_queue.put_nowait(last_buy_order) except Exception as e: print("数据:", last_buy_order, item) print("数据:", last_buy_order, self.__latest_buy_order, item) raise e # 如果数据过多需要移除过长时间的小金额数据 accurate_buy_count = len(self.__big_accurate_buy_order_dict.keys()) trade/buy_radical/radical_buy_data_manager.py
@@ -449,11 +449,14 @@ if WantBuyCodesManager().is_in_cache(code): return True, "已加想", False zyltgb = global_util.zyltgb_map.get(code) k_format = None if not constant.TEST: k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) if k_format: if not k_format[13]: if not k_format[13] and zyltgb and zyltgb < 50e8: # 50亿以下的60天未涨停不买 return False, "近60个交易日无涨停", True if k_format[14]: # 昨天炸板,一律不买 @@ -467,7 +470,6 @@ if price < constant.MIN_CODE_RADICAL_BUY_PRICE or price > constant.MAX_CODE_RADICAL_BUY_PRICE: return False, "价格不满足需求", True # 判断自由流通股本 zyltgb = global_util.zyltgb_map.get(code) if zyltgb: zyltgb_as_yi = round(zyltgb / 100000000, 2) zylt_can_buy = False @@ -1735,8 +1737,8 @@ if zyltgb and zyltgb > 50e8: # 需要4倍均大单 current_threshold_count = 4 if not is_first_limit_up_buy(code): is_first = is_first_limit_up_buy(code) if not is_first: # 如果是回封下单阈值就采用均大单 THRESHOLD_MONEY, is_temp_threshold_money = BeforeSubDealBigOrderManager().get_big_order_threshold_info(code) if THRESHOLD_MONEY < 600e4 and current_threshold_count < 3: trade/buy_radical/radical_buy_strategy.py
@@ -177,6 +177,9 @@ # if block_special_codes_manager.BlockSpecialCodesManager().get_code_blocks(code) and radical_buy_data_manager.is_first_limit_up_buy(code) and not LimitUpCodesBlockRecordManager().has_new_block( # code): # threshold_left_sell_money = average_big_order_money * 2 # TODO 判断是否可直接下单,不需要等到封单消耗 if threshold_left_sell_money > left_limit_up_sell_money: # 剩余总卖小于均大单才能下单