| | |
| | | # L2级数据触发的板上盯的炸板策略 |
| | | def explosion_strategy(code): |
| | | if code not in data_cache.available_symbols_set: |
| | | return |
| | | return "没在持仓中" |
| | | current_info = data_cache.current_l1_dict.get(code) |
| | | if not current_info: |
| | | return |
| | | return "L1数据不存在" |
| | | # symbol = symbol_code |
| | | symbol = basic_methods.format_stock_symbol(code) # 转化为掘金数据来源的股票代码 |
| | | symbol = basic_methods.format_stock_symbol(code) # 转化为掘金数据格式的股票代码 |
| | | current_price = current_info[2] # 获取当前最新价 |
| | | current_volume = current_info[3] # 当日当时的总成交量 |
| | | current_quotes_sell = current_info[6] # 卖5档数据 |
| | |
| | | index = i |
| | | break |
| | | if not position_info: |
| | | return |
| | | return "无持仓数据" |
| | | position_volume_yesterday = position_info['availablePosition'] # 股份可用 (可用股份数量) # 昨日持仓量(可用持仓量) |
| | | # 该股加入到板上盯卖的集合中 所以设定卖出全仓 |
| | | if symbol in data_cache.LIMIT_UP_SELL_CODES: |
| | | # 该股加入到板上盯卖的集合中 所以设定卖出全仓 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( |