大智慧指标公式 大智慧把KDJ和MACD加加在一起找买卖点指标公式
2014-12-30 10:00:36 股票入门 http://rumen.southmoney.com
南方财富网带来大智慧指标公式 大智慧把KDJ和MACD加加在一起找买卖点指标公式:
DRAWGBKlast(c》0,strip(RGB(0,0,20),RGB(0,0,40),0));
0,COLORFF9900,LAYER3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORFF9900,LAYER0;
D:SMA(K,3,1),COLOR00FFff,LINETHICK1;
J:3*K-2*D,COLOR0000FF,LINETHICK1,LAYER0;
FILLRGN(J,K,J》K,RGB(0,120,0)),COLORFF9900,LINETHICK2,LAYER4;
FILLRGN(J,K,J《K,RGB(50,0,50)),COLORFF9900,LINETHICK2,LAYER4;
DIFF:=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
STICKLINE(MACD》0,MACD/2,0,20,0),Color0598FF;
STICKLINE(MACD《0,MACD/2,0,20,0),ColorFF2200;
周J:MA(“KDJ.J#WEEK”(9,3,3),5),COLORFF9900;
PARTLINE(周J,周J》=REF(周J,1),rgb(0,255,255)),LINETHICK4,LAYER0;
DRAWGBK(DIFF》DEA OR K》D OR 周J》=REF(周J,1),STRIP(RGB(0,0,255),RGB(100,0,0),0)),LAYER0;
FL:=CROSS(REF(J,1),J) AND J》80;
DRAWTEXT(FL,J,‘’+NUMTOSTRN(J,0)+‘’),LAYER0,ALIGN1,COLOR00ffFF,LINETHICK1;
DRAWTEXTABS(50,2,‘★J(9,3,3)【’+NUMTOSTRN(J,1)+‘】’),COLOR0077ff,LINETHICK1;
DRAWTEXTABS(180,2,‘★MACD(26,12,9)【’+NUMTOSTRN(MACD,1)+‘】’),COLOR00ff00,LINETHICK1;
KDB:=BARSLAST(REF(CROSS(K,D),1));
KDDB:=REF(CLOSE,KDB+1)》CLOSE AND REF(K,KDB+1)《K AND CROSS(K,D);
K底背:=IF(FILTER(KDDB》0,5),1,0);
DRAWTEXT(K底背=1,80,‘底背离’),COLOR00FF00,LINETHICK2;
KDD:=BARSLAST(REF(CROSS(D,K),1));
K顶背:=REF(CLOSE,KDD+1)《CLOSE AND REF(K,KDD+1)》K AND CROSS(D,K);
DRAWTEXT(FILTER(K顶背》0,5),80,‘顶背离’),COLOR00FFFF,LINETHICK2;
DRAWTEXT(barstatus=2 ,J,‘【J=’+NUMTOSTRN(J,0)+‘】’),ALIGN1,Color00FFFF,linethick2,LAYER0;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。