admin
2025-06-10 72e5e0a0a601aaf26f8363b44c452f5bf1c6d1b7
1.修改有强度瞬时量幅比
2.充分交易量公式 优化 计算公式
2个文件已修改
4 ■■■■ 已修改文件
strategy/basic_methods.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
strategy/buying_strategy.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
strategy/basic_methods.py
@@ -211,7 +211,7 @@
# 充分交易量公式 用于计算日内涨幅段理论的安全交易量值
def sufficient_volume(current_volume, yesterday_volume, today_growth):
    if today_growth > 0 and round(current_volume / yesterday_volume, 2) >= 0.01:
        if current_volume > yesterday_volume * (today_growth/10) * 0.5:
        if current_volume > yesterday_volume * (today_growth/10) * 0.1:
            return True
        else:
            return False
strategy/buying_strategy.py
@@ -559,7 +559,7 @@
                                        intersection_plate = bought_plate_set.intersection(strength_plate_set)
                                        if len(intersection_plate) > 0:
                                            logger_info(f"重复相交强度==={intersection_plate}")
                                        if last_volume_to_growth_ratio < 1:
                                        if last_volume_to_growth_ratio < 0.8:
                                            logger_info(
                                                f"【有强度 有小量换大涨幅】瞬时量幅比< 1 !瞬时量幅比:{round(last_volume_to_growth_ratio, 2)}%,最新价: {current_price},瞬时涨幅:{round(tick_growth, 2)}%,当日当时涨幅:{today_growth}%,当前时间:{current_created_at}。")
                                            if tick_growth >= 1 and today_growth >= 1: