1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| from code_attribute import code_nature_analyse
| from utils import init_data_util
|
|
| 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_in_10d_with_limit_up(datas)
| return is_new_high
|
|
| if __name__ == "__main__":
| code_str = "600148"
| codes = code_str.split(",")
| for code in codes:
| if code.find("00") != 0 and code.find("60") != 0:
| continue
| try:
| datas = init_data_util.get_volumns_by_code(code, 120)
| datas = datas[0:]
| result = is_too_high(datas)
| if result:
| print(code, result)
| except:
| print(code, "出错")
|
|