【同花順】主升浪KDJ指標公式
攻城獅 2015.11.08 01:01
N:=9;
M1:=3;
M2:=3;
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;
D: EMA(0.667*REF(K,1)+0.333*K,2),colorgreen,LINETHICK1;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趨勢:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;
主升浪:趨勢>=50,COLOR0000FF,POINTDOT,NODRAW;
↓:趨勢<50,COLORFFFFFF,POINTDOT,NODRAW;
周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;
臨界:IF(CROSS(98,趨勢),1,0),COLOR00FF00,POINTDOT,NODRAW;
WKQY:=BARSLAST(CROSS(50,趨勢))挖坑:BETWEEN(趨勢,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW;
DRAWBAND(趨勢,RGB(250,0,0),50,RGB(0,0,0));
AA:=IF(挖坑,趨勢,50);
DRAWBAND(50,RGB(250,250,0),AA,RGB(0,0,0));
STICKLINE(主升浪,周期*0.8,周期*0.95,3,0),colorcyan;
STICKLINE(主升浪,周期*1.05,周期*1.2,3,0),colorcyan;
STICKLINE(主升浪 AND C STICKLINE(CROSS(主升浪,0.1),0,100,0,-1),colorcyan;
DRAWTEXT(臨界,90,’☆’),COLOR00FF00;
平:0,COLORFFFFFF;
STICKLINE(C>0,50,50,1,0),colorcyan;
%:趨勢,COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=60,20,’====★趨勢為王.順勢而為!★====’),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=58,-30,’■只做主升, 挖坑低吸!’),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=58,-60,’●臨界不漲, 逢高離場!’),COLOR00FFFF;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
藍:IF(FILTER(YXF=1,5),20,0),colorliblue,LINETHICK3;
紅: IF(FILTER(YXF=1,5),10,0),colorred,LINETHICK2;
黃: IF(FILTER(YXF=1,5),5,0),coloryellow,LINETHICK1;
申明:本文為作者投稿或轉載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。