发家kdj之牛版副图-精品通达信指标公式源码分享
N:=9; M1:=3; M2:=3; M3:=30; M4:=10; M5:=5;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
GGG:=K-J>35 AND J<-15;
FFF:=J>0 AND REF(J,1)<-5 AND REF(J,1)>REF(J,2);
TTT:=CROSS(K,D) AND D>REF(D,2) AND D<30;
YYY:=CROSS(K,D) AND D>REF(D,2) AND D>70;
STICKLINE(J<-10,-10,0,0.1,0), ,COLORWHITE;
DRAWTEXT(J<-10,-4,'底'),COLOR00FFFF;
STICKLINE(GGG,40,0,0.1,0), ,COLORMAGENTA;
DRAWTEXT(GGG,25,'背离'),COLOR00FFFF;
STICKLINE(FFF,-10,0,4,0), ,COLORGREEN;
DRAWTEXT(FFF,-8,'绝对买,今买明赚1%出,大盘好可多赚'),COLOR00FFFF;
KDJ30均:REF((K+D+J)/3,M3)/10,COLORYELLOW;
KDJ10均:REF((K+D+J)/3,M4)/10,COLORWHITE;
KDJ5均:REF((K+D+J)/3,M5)/10,COLORMAGENTA;
个股趋势:MA(C,1)/MA(REF(C,18),18)*100,COLOR33FF99,LINETHICK1;
大盘趋势:=EMA(INDEXC,1)/MA(REF(INDEXC,18),18)*100;
大盘走势:MA(FORCAST(大盘趋势,20),6),COLORRED;
DPZD:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;
GGZD:=(C-REF(C,1))/REF(C,1)*100;
QRD:=GGZD-DPZD;
强弱度:EMA(QRD,20),COLORYELLOW;
强弱度,COLORSTICK;
穿:=CROSS(个股趋势,大盘走势) AND 个股趋势>REF(个股趋势,2);
STICKLINE(穿,个股趋势,0,0.5,0), , COLORGREEN;
DRAWTEXT(穿,72,'穿'),COLOR00FFFF;
牛:=穿 AND CROSS(J,K);
STICKLINE(牛,0,-20,2,0), , COLORMAGENTA;
DRAWTEXT(牛,-10,'牛'),COLOR00FFFF;
小牛:=穿 AND TTT;
小牛1:=穿 AND YYY;
STICKLINE(小牛,0,-25,1.5,0), , COLORYELLOW;
DRAWTEXT(小牛,-12,'小牛'),COLOR00FFFF;
STICKLINE(小牛1,0,-25,1.5,0), , COLORYELLOW;
DRAWTEXT(小牛1,-12,'小牛'),COLOR00FFFF;
MA3:MA(个股趋势,3),COLORBLUE;
MA5:MA(个股趋势,5),COLORMAGENTA;
MA10:MA(个股趋势,10),COLORGRAY;
MA20:MA(个股趋势,20),COLORWHITE;
MA30:MA(个股趋势,30),COLORBLUE;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!