Documentation ¶
Index ¶
- func BRAR(df pandas.DataFrame, N any) pandas.DataFrame
- func CDTD(df pandas.DataFrame) pandas.DataFrame
- func F89K(df pandas.DataFrame, N int) pandas.DataFrame
- func KDJ(df pandas.DataFrame, N, M1, M2 int) pandas.DataFrame
- func M(raw pandas.DataFrame, argv ...bool) (stat.DType, bool)
- func MA4X(df pandas.DataFrame, N int) pandas.DataFrame
- func MACD(df pandas.DataFrame, SHORT, LONG, MID int) pandas.DataFrame
- func MAX_GO[T stat.Ordered](a, b T) (x, y T)
- func Platform(df pandas.DataFrame) pandas.DataFrame
- func RSI(df pandas.DataFrame, N1, N2, N3 int) pandas.DataFrame
- func W(raw pandas.DataFrame, argv ...bool) (stat.DType, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BRAR ¶
BRAR 情绪指标
BR:SUM(MAX(0,HIGH-REF(CLOSE,1)),N)/SUM(MAX(0,REF(CLOSE,1)-LOW),N)*100; 输出BR:0和最高价-1日前的收盘价的较大值的N日累和/0和1日前的收盘价-最低价的较大值的N日累和*100 AR:SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*100; 输出AR:最高价-开盘价的N日累和/开盘价-最低价的N日累和*100
func KDJ ¶
KDJ 指标
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; RSV赋值:(收盘价-N日内最低价的最低值)/(N日内最高价的最高值-N日内最低价的最低值)*100 K:EMA(RSV,M1,1); 输出K:RSV的M1日[1日权重]移动平均 D:EMA(K,M2,1); 输出D:K的M2日[1日权重]移动平均 J:3*K-2*D; 输出J:3*K-2*D
func MACD ¶
MACD 指标
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); 输出DIF:收盘价的SHORT日指数移动平均-收盘价的LONG日指数移动平均 DEA:EMA(DIF,MID); 输出DEA:DIF的MID日指数移动平均 MACD:(DIF-DEA)*2,COLORSTICK; 输出平滑异同平均线:(DIF-DEA)*2,COLORSTICK 系统默认12, 26, 9 这里采用5,13,3
func RSI ¶
RSI 指标
LC:=REF(CLOSE,1); LC赋值:1日前的收盘价 RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; 输出RSI1:收盘价-LC和0的较大值的N1日[1日权重]移动平均/收盘价-LC的绝对值的N1日[1日权重]移动平均*100 RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; 输出RSI2:收盘价-LC和0的较大值的N2日[1日权重]移动平均/收盘价-LC的绝对值的N2日[1日权重]移动平均*100 RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100; 输出RSI3:收盘价-LC和0的较大值的N3日[1日权重]移动平均/收盘价-LC的绝对值的N3日[1日权重]移动平均*100 系统默认参数6,12,24
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.