B:IF(SHOWBOLL=1,MAN+1*STD(CLOSE,N),NULL),COLORGREEN; LB:IF(SHOWBOLL=1,MAN-1*STD(CLOSE,N),NULL),COLORGREEN; LUB:=BARSLAST(LLV(UB-LB,N)=UB-LB); IF(LLV(UB-LB,N)=UB-LB AND SHOWBOLL=1,LB,NULL),COLORBLUE,LINETHICK2; IF(LLV(UB-LB,N)=UB-LB AND SHOWBOLL=1,UB,NULL),COLORRED,LINETHICK2; {顧比倒數(shù)線主圖} P:=N; WH1:=IF(L=LLV(L,P),L,NULL); WH2:=REFX1(BARSLAST( NOT(ISNULL(WH1)) ),10000); WH3:=REFX1(IF(WH2=0,H,REF(H,WH2)),10000); WH4:=REFX1(REF(BARSLAST(H>WH3),WH2+1)+WH2+1,10000); WH5:=REFX1(IF(WH4=0,H,REF(H,WH4)),10000); WH6:=REFX1(REF(BARSLAST(H>WH5),WH4+1)+WH4+1,10000); WDSX:=IF(REF(H,WH6)<REF(L,WH6+1),REF(L,WH6+1),REF(H,WH6)); 進(jìn)6:=REFX1(REF(BARSLAST(H>WH5),WH4+1)+WH4+1,10000); DSX:=IF(REF(H,WH6)<REF(L,WH6+1),REF(L,WH6+1),REF(H,WH6)); |
|