HJ_1:=IF(DATE<1161215,1,0);
HJ_2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*HJ_1*100;
HJ_3:=SMA(HJ_2,3,1);
HJ_4:=SMA(HJ_3,3,1);
J:3*HJ_3-2*HJ_4,NODRAW,COLORRED,LINETHICK2;
大海:MA(HJ_2,20),COLORCYAN;
天际:大海+2*STD(HJ_2,20),COLORYELLOW;
海底:大海-2*STD(HJ_2,20),COLORMAGENTA;
HJ_5:=2*STD(HJ_2,20);{www.fxjgsw.com}
STICKLINE(J>REF(J,1),J,REF(J,1),3,1),COLORRED;
STICKLINE(J<=REF(J,1),J,REF(J,1),3,1),COLORGREEN;
STICKLINE(J<=REF(J,1) AND J<0 AND J>(-10),J,REF(J,1),3,0),COLORBLUE;
STICKLINE(J<=REF(J,1) AND J<=(-10),J,REF(J,1),3,0),COLORGREEN;
STICKLINE(J>REF(J,1) AND J>100 AND J<110,J,REF(J,1),3,0),COLORMAGENTA;
STICKLINE(J>REF(J,1) AND J>=110,J,REF(J,1),3,0),COLORRED;
STICKLINE(CROSS(J,HJ_3) AND J>=50,J,REF(J,1),0.3,0),COLORYELLOW;
STICKLINE(CROSS(J,HJ_3) AND J<50,J,REF(J,1),3,0),COLORYELLOW;
STICKLINE(CROSS(HJ_3,J) AND J<=50,J,REF(J,1),0.3,0),COLORCYAN;
STICKLINE(CROSS(HJ_3,J) AND J>50,J,REF(J,1),3,0),COLORCYAN;
DRAWICON(CROSS(J,海底),海底,1);
DRAWICON(CROSS(天际,J),天际,2);
HJ_6:=LLV(HJ_5,10)=HJ_5;
HJ_7:=REF(COUNT(J<大海,2),1)>0;
HJ_8:=REF(COUNT(J>大海,2),1)>0;
DRAWICON(FILTER(COUNT(HJ_6,3)>0 AND COUNT(CROSS(J,HJ_3),3)>0 AND 大海>REF(大海,1) AND COUNT(大海<REF(大海,1),5)>=3 AND 大海<50 AND HJ_7,2),海底,26);
DRAWICON(FILTER(COUNT(HJ_6,3)>0 AND COUNT(CROSS(HJ_3,J),3)>0 AND 大海<REF(大海,1) AND COUNT(大海>REF(大海,1),5)>=3 AND 大海>50 AND HJ_8,2),天际,27);
HJ_9:=0;{www.fxjgsw.com}
HJ_10:=IF(HJ_9=0,HIGH,CLOSE);
HJ_11:=IF(HJ_9=0,LOW,CLOSE);
HJ_12:=BARSLAST(CROSS(50,J) AND J<50);
HJ_13:=COUNT(CROSS(J,HJ_3),HJ_12);
HJ_14:=LLV(J,HJ_12);
HJ_15:=LLV(LOW,HJ_12);
HJ_16:=J<50 AND HJ_11=HJ_15 AND J>HJ_14;
HJ_17:=REF(HJ_16,1) AND HJ_11>REF(HJ_11,1) AND J<50 AND J>HJ_14 AND HJ_13>0;
HJ_18:=BARSLAST(CROSS(J,50) AND J>50);
HJ_19:=COUNT(CROSS(HJ_3,J),HJ_18);
HJ_20:=HHV(J,HJ_18);
{www.fxjgsw.com}
HJ_21:=HHV(HIGH,HJ_18);
HJ_22:=J>50 AND HJ_10=HJ_21 AND J<HJ_20;
HJ_23:=REF(HJ_22,1) AND HJ_10<REF(HJ_10,1) AND J>50 AND J<HJ_20 AND HJ_19>0;
DRAWICON(HJ_17,海底,7);
DRAWICON(HJ_23,天际,8);
HJ_24:=LLVBARS(J,HJ_12);
HJ_25:=HHVBARS(J,HJ_18);
HJ_26:=BACKSET(HJ_17,HJ_24+1);
HJ_27:=BACKSET(HJ_23,HJ_25+1);
NOTEXTJL:DRAWLINE(REF(HJ_26,1)=0 AND HJ_26=1 AND J<50,J,HJ_17,J,0),COLORRED;
NOTEXTHL:DRAWLINE(REF(HJ_27,1)=0 AND HJ_27=1 AND J>50,J,HJ_23,J,0),COLORGREEN;
{-----------------------------------}
|