【通達信】老楊KDJ指標(biāo)公式
攻城獅 2016.02.08 01:00
A0:=(2*C+H+L)/4;
均線:=MA(A0,3)>REF(MA(A0,3),1);
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
A2:=EMA(WINNER(C)*100,5);
A3:=MA(SMA(C-REF(C,1),3,1)/SMA(H-REF(C,1),3,1),3)*100;
K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORYELLOW;
D:MA(K,3),COLORFF0000,LINETHICK1;
J:3*K-2*D,LINETHICK1;
A4:=SMA(MAX(C-REF(C,2),0),6,1)/SMA(ABS(C-REF(C,2)),6,1)*100;
A5:=MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3);
低吸:IF(CROSS(A4,14) OR A5>REF(A5,1) AND CROSS(K,A2)AND K<40,20,0);
IF(A2>80 AND CROSS(95,K),85,100);
跌幅較大:K<5 AND LLV(C,3)/HHV(C,20)<0.8,COLOR00FF00;
STICKLINE(跌幅較大,0,30,3,0),COLOR00FF00;
A6:=COUNT(CROSS(K,A2),2)=1 AND CROSS(K,A5)AND A5/REF(A5,1)>0.9 AND K<50;
A7:=CROSS(K,D)AND D<10 OR CROSS(K,D)AND CROSS(K,A5)AND D<18;
DRAWTEXT(FILTER((A6 OR A7)AND K>REF(K,1),5)AND 均線 ,D,’金叉’);
DRAWTEXT(CROSS(D,K)AND CROSS(A5,K)AND D>85,D,’死叉’);
DRAWTEXT(FILTER(K>REF(K,1)AND (CROSS(K,10)OR CROSS(K,A2))AND COUNT(A4<14,3)>=1,3),15,’虎口拔牙’);
無限風(fēng)光:A2>85 AND K>85 OR A2>90 OR K>90,LINETHICK0,COLORFFFF00;
STICKLINE(無限風(fēng)光,MAX(A2,K),100,6,1),COLORFFFF00;
DRAWICON(CROSS(A3,-300)AND K<10,5,1);
A8:=BARSLAST(REF(CROSS(K,D),1));
二次金叉:=(A8<15 AND D<50 AND K>REF(K,A8+1) AND CROSS(K,D)AND A5<60);
DRAWTEXT(二次金叉 AND 均線,K,’二次金叉’);
A9:=LLV(C,2) DRAWTEXT(二次金叉 AND A9,K,’底背離’),COLORMAGENTA;
DRAWTEXT(LONGCROSS(J,K,7)AND CROSS(J,A2)AND A2<30 AND A2>REF(A2,1),K,’穿三線’);
DRAWTEXT(CROSS(84,A4)AND CROSS(K,A4),90,’虎口脫險’),COLOR00FF00;
A10:=MA((A0-MA(A0,13))/(0.15*AVEDEV(A0,13)),3);
DRAWICON(CROSS(A10,-15)AND J>REF(J,1),5,1);
DRAWICON(CROSS(20,A10),100,2);
{www.chiang1015.com 概念股網(wǎng)_通達信股票指標(biāo)公式}
賣點準(zhǔn)備:IF(CROSS(D,K) AND K>85,70,100),LINETHICK1,COLORLICYAN;
買點準(zhǔn)備:=IF(CROSS(K,D) AND K<10,10,-0.6),LINETHICK1,COLOR00FF00;
{www.chiang1015.com 概念股網(wǎng)_通達信股票指標(biāo)公式}
買入持股:=IF(K<=9,K,DRAWNULL)COLORWHITE,LINETHICK2;
買入持股1:=IF(K<=2,K,DRAWNULL)COLORRED,LINETHICK2;
賣出空倉:IF(K>=85 AND D>85,K,DRAWNULL)COLORWHITE,LINETHICK3;
賣出空倉1:IF(K>=85 AND D>90,K,DRAWNULL)COLORRED,LINETHICK2;
{公雞吸籌}
N:=1;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(BARSCOUNT(CLOSE) >34,1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸籌:=VAR9,LINETHICK0,COLOREE00EE;
{STICKLINE(VAR9>-120,0,VAR9,4,1);
STICKLINE(VAR9>1 AND “KDJ.J”>REF(“KDJ.J”,1) AND REF(“KDJ.J”,1) STICKLINE(VAR9>0.1 AND VAR9<1 AND "KDJ.J">REF(“KDJ.J”,1) AND REF(“KDJ.J”,1) 公雞:IF(VAR9>N/10 AND “KDJ.J”>REF(“KDJ.J”,1) AND REF(“KDJ.J”,1) {DRAWTEXT(公雞,LOW*0.970,”),LINETHICK1,COLORYELLOW;};
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責(zé),投資決策請建立在獨立思考之上。