当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是发家kdj之牛版 (附图 源码)(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 趋势一目了然,图中上方为个股比大盘趋势,中部kdj趋势,下部kdj5,10,30日趋势,无未来,源码如下:
- 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;
- STICKLINE(TTT,50,0,0.1,0), ,COLORRED;
- DRAWTEXT(TTT,20,'买'),COLOR00FFFF;
- STICKLINE(YYY,50,0,0.1,0), ,COLORRED;
- DRAWTEXT(YYY,20,'买'),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;
上一篇:获利筹码 (源码) 下一篇:线趋势 (副图 源码)