【同花順】漲停風(fēng)景線指標公式
攻城獅 2015.11.09 13:22
STICKLINE(C>0,90,95,10,0),COLOR408000;
STICKLINE(C>0,10,5,10,0),COLOR408000;
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DRAWBAND(HDY,RGB(255,000,139),10,RGB(255,255,71));
STICKLINE(HDY>90,100,98,2,1),colorligreen;
STICKLINE(HDY>95,100,98,2,0),colorgreen;
STICKLINE(HDY<10,0,2,2,1),colorlired;
STICKLINE(HDY<5,0,2,2,0),colorred;
STICKLINE(C>0,90,10,10,0),COLOR000000;
風(fēng)險值:HDY,colorcyan,LINETHICK2;
超高位區(qū):=風(fēng)險值>=95,colorgreen,NODRAW;
高位區(qū):=風(fēng)險值<95 AND 風(fēng)險值>90,colorligreen,NODRAW;
低位區(qū):=風(fēng)險值<10 AND 風(fēng)險值>5,colorlired,NODRAW;
超低位區(qū):=風(fēng)險值<=5,colorgreen,NODRAW;
底背離:IF(CREF(風(fēng)險值,1) AND 風(fēng)險值<15,1,0),colormagenta,NODRAW;
STICKLINE(底背離,0,-2,2,0),colormagenta;
頂背離:IF(C>REF(C,1) AND 風(fēng)險值85,1,0),colorblue,NODRAW;
STICKLINE(頂背離,100,102,2,0),colorblue;
A:=風(fēng)險值/REF(風(fēng)險值,1)-1;
B:=風(fēng)險值/REF(風(fēng)險值,2)-1;
高位變盤:A>=-0.035 AND A<=0.035 AND 風(fēng)險值>50,NODRAW;
STICKLINE(高位變盤,50,52,2,0),colorred;
低位變盤:A>=-0.035 AND A<=0.035 AND 風(fēng)險值<50,NODRAW;
STICKLINE(低位變盤,50,48,2,0),colorgreen;
危險:=高位變盤 AND C STICKLINE(危險,52,53,1.6,0),colormagenta;
STICKLINE(危險,53,54,1.2,0),colormagenta;
STICKLINE(危險,54,55,0.8,0),colormagenta;
STICKLINE(危險,55,56,0.4,0),colormagenta;
STICKLINE(危險,56,57,0.2,0),colormagenta;
STICKLINE(危險,57,58,0.05,0),colormagenta;
A1:=CROSS(風(fēng)險值,20) AND CROSS(風(fēng)險值,35);
A2:=CROSS(風(fēng)險值,35) AND CROSS(風(fēng)險值,50);
A3:=CROSS(風(fēng)險值,50) AND CROSS(風(fēng)險值,65);
A4:=CROSS(風(fēng)險值,65) AND CROSS(風(fēng)險值,80);
急拉:=A1 OR A2 OR A3 OR A4;
DRAWTEXT(急拉,風(fēng)險值,’↑急拉,注意’),colorred;
A5:=CROSS(20,風(fēng)險值) AND CROSS(35,風(fēng)險值);
A6:=CROSS(35,風(fēng)險值) AND CROSS(50,風(fēng)險值);
A7:=CROSS(50,風(fēng)險值) AND CROSS(65,風(fēng)險值);
A8:=CROSS(65,風(fēng)險值) AND CROSS(80,風(fēng)險值);
重挫:=A5 OR A6 OR A7 OR A8;
DRAWTEXT(重挫,風(fēng)險值,’↓重挫,注意’),coloryellow;
風(fēng)險線:80,colorred;
65線:65,colorwhite,DOTLINE;
中軸線:50,colorwhite,DOTLINE;
35線:35,colorwhite,DOTLINE;
安全線:20,colorgreen;
DRAWTEXT(ISLASTBAR,100,’超高位區(qū)’),colormagenta;
DRAWTEXT(ISLASTBAR,95,’高 位 區(qū)’),colorlimagenta;
DRAWTEXT(ISLASTBAR,88,’高緩沖區(qū)’),colorlired;
DRAWTEXT(ISLASTBAR,82.5,’80風(fēng)險線’),colorred;
DRAWTEXT(ISLASTBAR,52.5,’50中軸線’),colorwhite;
DRAWTEXT(ISLASTBAR,22.5,’20安全線’),colorgreen;
DRAWTEXT(ISLASTBAR,10,’低 位 區(qū)’),colorligreen;
DRAWTEXT(ISLASTBAR,5,’超低位區(qū)’),colorliblue;
DRAWTEXT(ISLASTBAR,18,’低緩沖區(qū)’),colorblue;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責(zé),投資決策請建立在獨立思考之上。