| | |
| | | # 计算90天内涨停天数 |
| | | for i in k_line_data: |
| | | if 'attribute' in i and ( |
| | | i['attribute'] == 'one_line_limit_up' or i['attribute'] == 'limit_down_then_limit_up' or i[ |
| | | 'attribute'] == 'limit_up_then_limit_down_then_limit_up' or i['attribute'] == 'limit_up'): |
| | | i['attribute'] == 'one_line_limit_up' or i['attribute'] == 'limit_down_then_limit_up' or i['attribute'] == 'limit_up_then_limit_down_then_limit_up' or i['attribute'] == 'limit_up'): |
| | | limit_up_day += 1 |
| | | # print(f"涨停提日期:{i['bob']}") |
| | | # print(f"涨停天数----limit_up_day======{limit_up_day}") |