God type

See also

Init Function:

from indicator.technology.god import *
import tushare as ts
pro = ts.pro_api('59e1f90437c021fb31c99c20d08493070f17305afe606fdf0ef89f37')
df = pro.daily(ts_code='000001.SZ', start_date='20180701', end_date='20190718')
df['volume'] = df['vol']
df.tail()
dp = pro.daily(ts_code='000001.SZ', start_date='20180701', end_date='20190718')
dp['volume'] = dp['vol']
dp.tail()
indicator.technology.god.SGXDT(df, dp, P1=5, P2=10)
Parameters:df – DataFrame
Returns:
QR:收盘价/大盘的收盘价*1000
MQR1:QR的5日简单移动平均
MQR2:QR的10日简单移动平均

Note

心电图

indicator.technology.god.SGSMX(df, dp, N=50)
Parameters:df – DataFrame
Returns:
ZY1:收盘价/大盘的收盘价*2000 的3日指数移动平均
ZY2:收盘价/大盘的收盘价*2000 的1日指数移动平均
ZY3:收盘价/大盘的收盘价*2000 的34日指数移动平均

Note

生命线

indicator.technology.god.SGLB(df, dp)
Parameters:df – DataFrame
Returns:
LB:成交量(手)/大盘的成交量*1000
MA5:ZY2的5日简单移动平均
MA10:ZY2的10日简单移动平均

Note

量比

indicator.technology.god.SGPF(df, dp)
Parameters:df – DataFrame
Returns:
PF:输出强势股评分

Note

强势股评分