1.修改有强度瞬时量幅比
2.充分交易量公式 优化 计算公式
| | |
| | | # 充分交易量公式 用于计算日内涨幅段理论的安全交易量值 |
| | | 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 |
| | |
| | | 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: |