| | |
| | | |
| | | # 充分交易量公式 用于计算日内涨幅段理论的安全交易量值 |
| | | def sufficient_volume(current_volume, yesterday_volume, today_growth): |
| | | if today_growth > 0: |
| | | if current_volume > yesterday_volume * 0.5 * 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: |
| | | return True |
| | | else: |
| | | return False |
| | |
| | | else: |
| | | buying_ratio = 0.01 |
| | | return buying_ratio |
| | | |
| | | |
| | | # 统计有意买股票出现次数函数 |
| | | def count_willing_buy_times(sec_name): |
| | | willing_buy_times = data_cache.willing_buy_list.count(sec_name) |
| | | return willing_buy_times |