| | |
| | | position_volume_yesterday = position_info['availablePosition'] # 股份可用 (可用股份数量) # 昨日持仓量(可用持仓量) |
| | | # 该股加入到板上盯卖的集合中 所以设定卖出全仓 data_cache.LIMIT_UP_SELL_CODES 是华鑫格式的代码 |
| | | if code in data_cache.LIMIT_UP_SELL_CODES: |
| | | logger_info(f"板上盯卖 |开启| 进入卖票决策") |
| | | if current_volume < k_line_data[0]['volume'] * 0.6: |
| | | logger_info( |
| | | f"【开盘临机】-【 炸板中!!且当日量不足】【{k_line_data[0]['sec_name']}】 卖一数量不等于0,设定委卖数量【十分之一仓】,当日当时量:{current_volume}") |
| | | order_methods.sell_order_by_part_volume(0.1, symbol, |
| | | position_volume_yesterday, |
| | | current_price, |
| | | k_line_data[0]['sec_name'], |
| | | index) |
| | | # 如果 卖二 量炸出来了,那么就是彻底炸开了。 |
| | | if current_quotes_sell[1][1] != 0: |
| | | logger_info( |
| | | f"【开盘临机】-【 炸板炸开了!!】【{k_line_data[0]['sec_name']}】 卖二数量不等于0,设定委卖数量【十分之一仓】,当日当时量:{current_volume}") |
| | | order_methods.sell_order_by_part_volume(0.1, symbol, |
| | | position_volume_yesterday, |
| | | current_price, |
| | | k_line_data[0]['sec_name'], |
| | | index) |
| | | if current_volume < k_line_data[0]['volume'] * 0.8: |
| | | logger_info( |
| | | f"【开盘临机】-【 炸板!!且当日量不足】【{k_line_data[0]['sec_name']}】 买盘小于1万 且 今日量小于昨日量的 0.8,当日当时量:{current_volume}") |
| | | logger_info( |
| | | f"【开盘临机】-【 炸板!!且当日量不足】【{k_line_data[0]['sec_name']}】 设定委卖【全仓】") |
| | | order_methods.sell_order_by_part_volume(1, symbol, |
| | | position_volume_yesterday, |
| | | current_price, |
| | | k_line_data[0]['sec_name'], |
| | | index) |
| | | logger_info(f"L2板上盯卖 |开启| 进入卖票决策") |
| | | logger_info( |
| | | f"【开盘临机】-【L2炸板炸开了!!】【{k_line_data[0]['sec_name']}】 卖一数量不等于0,设定委卖数量【十分之一仓】,当日当时量:{current_volume}") |
| | | order_methods.sell_order_by_part_volume(0.1, symbol, |
| | | position_volume_yesterday, |
| | | current_price, |
| | | k_line_data[0]['sec_name'], |
| | | index) |
| | | |
| | | else: |
| | | logger_info(f"板上盯卖 |关闭| 不做处理") |