Administrator
2023-11-01 4ad1f29ee3f45cb74dab127108780e1bfffa161a
深证总卖大于2000万的票,m值打6折
2个文件已修改
7 ■■■■ 已修改文件
inited_data.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
inited_data.py
@@ -9,7 +9,7 @@
# import gm.api as gmapi
from code_attribute import big_money_num_manager, global_data_loader, gpcode_manager, gpcode_first_screen_manager
from code_attribute.code_nature_analyse import LatestMaxVolumeManager
from code_attribute.code_nature_analyse import LatestMaxVolumeManager, HighIncreaseCodeManager
from db.redis_manager_delegate import RedisUtils
from l2.l2_sell_manager import L2MarketSellManager
from ths import client_manager
@@ -103,6 +103,8 @@
        LatestMaxVolumeManager().clear()
        # L2卖行情清除
        L2MarketSellManager().clear()
        # 涨幅过高代码
        HighIncreaseCodeManager().clear()
# 每日初始化
l2/l2_data_manager_new.py
@@ -1061,6 +1061,9 @@
                if order_begin_pos.sell_info:
                    # 暂时打8折
                    order_begin_pos.threshold_money = int(sell_info[1] * 0.8)
                    # 深证总卖大于2000万的票,m值打6折
                    if code.find('00')==0 and sell_info[1] > 2000*10000:
                        order_begin_pos.threshold_money = int(sell_info[1] * 0.6)
                l2_log.debug(code, "获取到买入信号起始点:{} ,计算范围:{}-{} ,量比:{},数据:{} 模式:{}({})", buy_single_index,
                             compute_start_index,
                             compute_end_index, cls.volume_rate_info[code], total_datas[buy_single_index],