siat 3.2.3__py3-none-any.whl → 3.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
siat/__init__.py
CHANGED
@@ -20,12 +20,24 @@ InteractiveShell.ast_node_interactivity='all'
|
|
20
20
|
try:
|
21
21
|
import pkg_resources
|
22
22
|
current_version=pkg_resources.get_distribution("siat").version
|
23
|
+
current_list=current_version.split('.')
|
23
24
|
print("Successfully imported siat version",current_version)
|
24
25
|
|
25
26
|
import luddite
|
26
27
|
latest_version=luddite.get_version_pypi("siat")
|
28
|
+
latest_list=latest_version.split('.')
|
27
29
|
|
28
|
-
|
30
|
+
newest=True
|
31
|
+
if current_list[0] < latest_list[0]:
|
32
|
+
newest=False
|
33
|
+
elif current_list[1] < latest_list[1]:
|
34
|
+
newest=False
|
35
|
+
elif current_list[2] < latest_list[2]:
|
36
|
+
newest=False
|
37
|
+
else:
|
38
|
+
pass
|
39
|
+
|
40
|
+
if not newest:
|
29
41
|
print("The latest version of siat is",latest_version,'\n')
|
30
42
|
print("*** If you expect to upgrade siat in Anaconda Prompt, use the instruction below:")
|
31
43
|
print(" pip install siat --upgrade")
|
@@ -35,7 +47,7 @@ try:
|
|
35
47
|
print(" pip uninstall siat")
|
36
48
|
print(" pip install siat",'\n')
|
37
49
|
|
38
|
-
print("*** If you have a slow internet connection, use an option
|
50
|
+
print("*** If you have a slow internet connection, use an option trailing the instruction above:")
|
39
51
|
print(" -i https://mirrors.aliyun.com/pypi/simple/",'\n')
|
40
52
|
|
41
53
|
print("If you have done any of the above, restart the Python (eg. restarting the kernel)")
|
siat/stock_technical.py
CHANGED
@@ -2505,18 +2505,18 @@ def security_technical2(ticker,start='default',end='default', \
|
|
2505
2505
|
#price_line_style=(0,(1,1)), \
|
2506
2506
|
price_line_style='dotted', \
|
2507
2507
|
price_line_color=['red','green'], \
|
2508
|
-
price_line_width=
|
2508
|
+
price_line_width=1,price_line_marker='o', \
|
2509
2509
|
marker_sizes=[30,120,250], \
|
2510
2510
|
):
|
2511
2511
|
"""
|
2512
2512
|
功能:计算和绘制证券技术分析指标的简易图,仅供进一步探索使用,仅用于单个证券(股债基)
|
2513
2513
|
|
2514
|
-
|
2514
|
+
支持的探索指标:
|
2515
2515
|
OBV、SAR、VOL、PSY、ARBR、CR、EMV、TRIX、DMA、BIAS、CCI、W%R、ROC、DMI
|
2516
2516
|
支持的其他指标:不如单独的指令功能强
|
2517
2517
|
MACD、RSI、KDJ、BOLL
|
2518
2518
|
|
2519
|
-
关注的阈值:默认[0,
|
2519
|
+
关注的阈值:默认[0,25,50,75,100],attention_values=[0,25,50,75,100], 可以自定义。
|
2520
2520
|
收盘价折线:默认红色虚线,price_line_color='red'
|
2521
2521
|
"""
|
2522
2522
|
#检查证券代码
|
@@ -2615,6 +2615,13 @@ def security_technical2(ticker,start='default',end='default', \
|
|
2615
2615
|
|
2616
2616
|
indicator=indicator, \
|
2617
2617
|
more_details=more_details)
|
2618
|
+
#未安装talib
|
2619
|
+
if df is None:
|
2620
|
+
return None
|
2621
|
+
|
2622
|
+
if len(df) == 0:
|
2623
|
+
print(" #Warning(security_technical2): zero records calculated for",technical,"using indicator",indicator)
|
2624
|
+
return None
|
2618
2625
|
|
2619
2626
|
#技术指标的绘图线
|
2620
2627
|
tech_line_default={'RSI':['rsi'],
|
@@ -1,4 +1,4 @@
|
|
1
|
-
siat/__init__.py,sha256=
|
1
|
+
siat/__init__.py,sha256=0N9ER3IIQkOVCLiX2nvfOmYfaYpt4OMd-r0Hbh2DSJc,2496
|
2
2
|
siat/allin.py,sha256=f1VWxZLvPLR57ilk9GOziZMWjyAYOYLXbvQI4z38r50,2708
|
3
3
|
siat/alpha_vantage_test.py,sha256=tKr-vmuFH3CZAqwmISz6jzjPHzV1JJl3sPfZdz8aTfM,747
|
4
4
|
siat/assets_liquidity.py,sha256=deAJ60YcqMUgrXY7jy7BfzLutoy4uOEtfXqqMSujCRo,28889
|
@@ -115,7 +115,7 @@ siat/stock_prices_kneighbors.py,sha256=WfZvo5EyeBsm-T37zDj7Sl9dPSRq5Bx4JxIJ9IUum
|
|
115
115
|
siat/stock_prices_linear.py,sha256=-OUKRr27L2aStQgJSlJOrJ4gay_G7P-m-7t7cU2Yoqk,13991
|
116
116
|
siat/stock_profile.py,sha256=B3eIwzEmiCqiCaxIlhfdEPsQBoW1PFOe1hkiY3mVF6Y,26038
|
117
117
|
siat/stock_technical-20240620.py,sha256=A4x18mZgYSA8SSiDz4u_O3gd5oVRgbI6JIiBfFY0tVw,116013
|
118
|
-
siat/stock_technical.py,sha256=
|
118
|
+
siat/stock_technical.py,sha256=BYvPqwROBek24AgeOLQIAn0X1nc0CKM_6JGWfmOzyoc,122996
|
119
119
|
siat/stock_test.py,sha256=E9YJAvOw1VEGJSDI4IZuEjl0tGoisOIlN-g9UqA_IZE,19475
|
120
120
|
siat/stooq.py,sha256=dOc_S5HLrYg48YAKTCs1eX8UTJOOkPM8qLL2KupqlLY,2470
|
121
121
|
siat/temp.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
@@ -136,7 +136,7 @@ siat/valuation.py,sha256=NKfeZMdDJOW42oLVHob6eSVBXUqlN1OCnnzwyGAst8c,48855
|
|
136
136
|
siat/valuation_china.py,sha256=EkZQaVkoBjM0c4MCNbaX-bMnlG0e3FXeaWczZDnkptU,67784
|
137
137
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
138
138
|
siat/var_model_validation.py,sha256=f-oDewg7bPzyNanz_Y_jLH68NowAA3gXFehW_weKGG0,14898
|
139
|
-
siat-3.2.
|
140
|
-
siat-3.2.
|
141
|
-
siat-3.2.
|
142
|
-
siat-3.2.
|
139
|
+
siat-3.2.4.dist-info/METADATA,sha256=ZYOQXEN6fDtTEw8LfrqXyElewAO9OuxEax03JzawUas,1447
|
140
|
+
siat-3.2.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
141
|
+
siat-3.2.4.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
142
|
+
siat-3.2.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|