From 9a13d44579d71476709a19ffdd727e055f2c3a07 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 20 十月 2023 14:25:11 +0800 Subject: [PATCH] 近日有最高量,量比要大于一定比例才能下单 --- code_attribute/first_target_code_data_processor.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/code_attribute/first_target_code_data_processor.py b/code_attribute/first_target_code_data_processor.py index dc3e594..636c139 100644 --- a/code_attribute/first_target_code_data_processor.py +++ b/code_attribute/first_target_code_data_processor.py @@ -126,6 +126,10 @@ # 鍒ゆ柇鏄惁澶珮 l2_trade_util.forbidden_trade(code, "120澶╁唴鑲′环闀垮緱澶珮") + if code_nature_analyse.is_have_latest_max_volume(volumes_data, 2): + # 鏈�杩�2澶╂槸鍚︽槸鏈�楂橀噺 + code_nature_analyse.LatestMaxVolumeManager().set_has_latest_max_volume(code) + # 鍒ゆ柇K绾垮舰鎬� # is_has_k_format, msg = code_nature_analyse.is_has_k_format( # gpcode_manager.get_limit_up_price(code), volumes_data) -- Gitblit v1.8.0