【同花順】紅綠燈+KDJ背離指標(biāo)公式
攻城獅 2015.11.27 08:23
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),coloryellow,LINETHICK1;
D:SMA(K,M2,1),colorcyan,LINETHICK1;
J:3*K-2*D,colormagenta,LINETHICK1;
高安全區(qū):0,colorred;
安全區(qū):20,colorcyan;
風(fēng)險區(qū):100,colorgreen;
U1:=BARSLAST(REF(CROSS(K,D),1));
U2:=REF(C,U1+1)>C AND REF(K,U1+1)底背離:=IF(U2>0,1,0);
DRAWLINE(U1=0,D,底背離,REF(D,U1),0),colorred,LINETHICK2;
DRAWLINE(底背離,D,底背離,REF(D,U1),0),colorred,LINETHICK2;
//{www.vatsalthakor.com 概念股網(wǎng)_同花順股票指標(biāo)公式}
DRAWTEXT(底背離,REF(D,U1)*1.00,’ 底背離’),coloryellow;
rr:=MAX(C,O);
q1:=HHV(rr,5);
q2:=dREF(d,2);
A2:=BARSLAST(REF(q2,1));
頂背離:= REF(q1,A2+1)DRAWLINE(A2=0 ,D,頂背離,REF(D,A2),0),colorwhite,LINETHICK2;
DRAWLINE(頂背離,D,頂背離,REF(D,A2),0),colorwhite,LINETHICK2;
DRAWTEXT(頂背離,REF(D,A2)*1.02,’ 頂背離’),colorgreen;
Var3:=(2*CLOSE+HIGH+LOW)/4;
Var4:=LLV(LOW,34);
VarA:=HHV(HIGH,34);
VarB:=EMA((Var3-Var4)/(VarA-Var4)*100,13);
VarC:=EMA(0.667*REF(VarB,1)+0.333*VarB,2);
oo:=VarB-VarC;
STICKLINE(oo>0,VarB,VarC,8,0),colorred;
STICKLINE(oo<0,VarB,VarC,8,0),colorgreen;
警戒線:80 ;
啟動線:20 ;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.vatsalthakor.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責(zé),投資決策請建立在獨立思考之上。