| | |
| | | total_sell_volume = 0 |
| | | if current_total_sell_data: |
| | | total_sell_volume = current_total_sell_data[2] |
| | | volume_rate = code_volumn_manager.get_volume_rate(code, total_sell_volume=total_sell_volume) |
| | | volume_rate = code_volumn_manager.CodeVolumeManager().get_volume_rate(code, total_sell_volume=total_sell_volume) |
| | | if volume_rate < 0.6: |
| | | return False, f"昨日炸板,量比({volume_rate})<0.6" |
| | | # 获取涨停价 |
| | |
| | | zyltgb = global_util.zyltgb_map.get(code) |
| | | if zyltgb: |
| | | zyltgb_as_yi = round(zyltgb / 100000000, 2) |
| | | if zyltgb_as_yi > constant.MAX_CODE_RADICAL_BUY_ZYLTGB_AS_YI: |
| | | return False, "自由流通市值过大" |
| | | elif zyltgb_as_yi < constant.MIN_CODE_RADICAL_BUY_ZYLTGB_AS_YI: |
| | | return False, "自由流通市值过小" |
| | | zylt_can_buy = False |
| | | for zy in constant.RADICAL_BUY_ZYLTGB_AS_YI_RANGES: |
| | | if zy[0] <= zyltgb_as_yi <= zy[1]: |
| | | zylt_can_buy = True |
| | | break |
| | | if not zylt_can_buy: |
| | | return False, "自由流通市值不满足扫的范围" |
| | | # 判断昨日是否跌幅过大 |
| | | k_format = code_nature_analyse.CodeNatureRecordManager().get_k_format_cache(code) |
| | | if k_format and len(k_format) > 12 and k_format[12]: |