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;
风险值:HDY,COLORCYAN,LINETHICK2;
风险值2:EMA(HDY,3),COLORRED,LINETHICK2;
力度:(风险值-风险值2)*5+50;
超高位区:=风险值>=95,COLORGREEN,NODRAW;
高位区:=风险值<95 AND 风险值>90,COLORLIGREEN,NODRAW;
低位区:=风险值<10 AND 风险值>5,COLORLIRED,NODRAW;
超低位区:=风险值<=5,COLORGREEN,NODRAW;
底背离:IF(C<REF(C,1) AND 风险值>REF(风险值,1) AND 风险值<15,1,0),COLORMAGENTA,NODRAW;
STICKLINE(底背离,0,-2,2,0),COLORMAGENTA;
顶背离:IF(C>REF(C,1) AND 风险值<REF(风险值,1) AND 风险值>85,1,0),COLORBLUE,NODRAW;
STICKLINE(顶背离,100,102,2,0),COLORBLUE;
A:=风险值/REF(风险值,1)-1;
B:=风险值/REF(风险值,2)-1;
高位变盘:A>=-0.035 AND A<=0.035 AND 风险值>50{ AND 风险值<70},NODRAW;
STICKLINE(高位变盘,50,60,2,0),COLORRED;
低位变盘:CROSS(风险值,风险值2) AND 风险值<50 AND 风险值>REF(风险值,1){ AND 风险值>30},NODRAW;
STICKLINE(低位变盘,50,40,2,0),COLORGREEN;
低位变盘等待:CROSS(风险值2,风险值) AND 风险值<50{ AND 风险值>30},NODRAW;
A10:IF(CROSS(风险值,风险值2),30,20);
A11:IF(CROSS(风险值2,风险值),70,80);
STICKLINE(低位变盘等待,50,40,2,0),COLORBLUE;
危险:=高位变盘 AND C<REF(C,1);
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(风险值,20) AND CROSS(风险值,35);
A2:=CROSS(风险值,35) AND CROSS(风险值,50);
A3:=CROSS(风险值,50) AND CROSS(风险值,65);
A4:=CROSS(风险值,65) AND CROSS(风险值,80);
急拉:=A1 OR A2 OR A3 OR A4;
DRAWTEXT(急拉,风险值,'↑急拉,注意'),COLORRED;
A5:=CROSS(20,风险值) AND CROSS(35,风险值);
A6:=CROSS(35,风险值) AND CROSS(50,风险值);
A7:=CROSS(50,风险值) AND CROSS(65,风险值);
A8:=CROSS(65,风险值) AND CROSS(80,风险值);
重挫:=A5 OR A6 OR A7 OR A8;
DRAWTEXT(重挫,风险值,'↓重挫,注意'),COLORYELLOW;
80,COLORRED;
65,COLORWHITE,DOTLINE;
50,COLORWHITE,DOTLINE;
35,COLORWHITE,DOTLINE;
20,COLORGREEN;
DRAWTEXT(ISLASTBAR,82.5,' 80风险线'),COLORRED;
DRAWTEXT(ISLASTBAR,52.5,' 50中位线'),COLORWHITE;
DRAWTEXT(ISLASTBAR,22.5,' 20安全线'),COLORGREEN;
风警线选股1:
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
HDY2:=EMA(HDY,3);
力度:=(HDY-HDY2)*5+50;
A1:=HHV((C-REF(C,1))/REF(C,1) >0.05,64);
YIN:CROSS(HDY,HDY2) OR CROSS(REF(HDY,1),REF(HDY2,1)) OR CROSS(REF(HDY,2),REF(HDY2,2)) OR CROSS(REF(HDY,3),REF(HDY2,3)) AND HDY<50 AND HDY>REF(HDY,1) AND 力度>REF(力度,1) AND 力度>50 AND A1 ;
风警线选股2:
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
HDY2:=EMA(HDY,3);
A1:=CROSS(HDY,HDY2) OR CROSS(REF(HDY,1),REF(HDY2,1)) OR CROSS(REF(HDY,2),REF(HDY2,2));
A2:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);
A3:=REF(HDY,2)<50 OR REF(HDY,1)<50 OR HDY<50;
YIN:A1 AND A2 AND A3 ; |