| | |
| | | # data_cache.have_plate_buy_money = 1000 |
| | | # data_cache.have_strength_buy_money = 1000 |
| | | |
| | | # 获取计算今天新增的持仓数量 |
| | | addition_position_number = len(data_cache.addition_position_symbols_set) |
| | | # 定义一个今日的剩余新增持仓数量的变量 |
| | | Unfinished_opening_plan_number = 3 - addition_position_number |
| | | # 根据账户可用金额 计算今日计划下单金额 |
| | | # (账户可用金额/今日最大新增持仓票数) * (大盘综合强度份数 * 0.01) |
| | | # data_cache.today_planned_order_amount = (200000 / 3) * (data_cache.real_time_market_strong * 0.01) # 测试是不是可用资金没有更新的原因 |
| | | data_cache.today_planned_order_amount = (usefulMoney / 3) * (data_cache.real_time_market_strong * 0.01) |
| | | data_cache.today_planned_order_amount = (usefulMoney / Unfinished_opening_plan_number) * (data_cache.real_time_market_strong * 0.01) |
| | | except Exception as error: |
| | | logger.error(f"获取实时大盘行情情绪综合强度[分数] 函数报错: {error}") |
| | | finally: |