1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| from code_attribute import code_nature_analyse
| from utils import init_data_util, tool
|
|
| def is_too_high(datas):
| limit_up_price = round(datas[0]["close"] * 1.1, 2)
| datas.reverse()
| is_new_high = code_nature_analyse.is_up_too_high_from_latest_limit_up(datas)
| return is_new_high
|
|
| if __name__ == "__main__":
| code = "000897"
| limit_up_price = 2.39
| volumes_data = init_data_util.get_volumns_by_code(code, 150)
| volumes = init_data_util.parse_max_volume(volumes_data[:90],
| code_nature_analyse.is_new_top(
| limit_up_price,
| volumes_data[:90]) or code_nature_analyse.is_near_top(
| limit_up_price,
| volumes_data[:90]))
| print(volumes)
|
|