三指金叉选股公式
发布时间:2019-03-01
选股公式源码
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
KD金叉:=K<=50 AND D<=50 AND CROSS(K,D);
N:=83;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
CCI上穿:=CROSS(CCI,-100);
GZ:底背离 AND KD金叉 AND CCI上穿;
选股公式翻译
DIFF赋值:收盘价的3日指数移动平均-收盘价的8日指数移动平均DEA赋值:DIFF的9日指数移动平均MACD赋值:2*(DIFF-DEA)A1赋值:上次1日前的DIFF上穿DEA距今天数底背离赋值:A1+1日前的收盘价>收盘价 AND DIFF>A1+1日前的DIFF AND DIFF上穿DEALOWV赋值:9日内最低价的最低值HIGHV赋值:9日内最高价的最高值RSV赋值:(收盘价-LOWV)/(HIGHV-LOWV)*100的3日指数移动平均K赋值:RSV的3日指数移动平均D赋值:K的3日简单移动平均KD金叉赋值:K<=50 AND D<=50 AND K上穿DN赋值:83TYP赋值:(最高价+最低价+收盘价)/3CCI赋值:(TYP-TYP的N日简单移动平均)/(0.015*TYP的N日平均绝对偏差)CCI上穿赋值:CCI上穿-100输出GZ:底背离 AND KD金叉 AND CCI上穿
演示图片
赞 (0)