MAN:=MA(C,N); MTR:=MAX(MAX((HIGH-LOW),ABS(REF(C,1)-HIGH)),ABS(REF(C,1)-LOW)); ATR:=MA(MTR,N),NODRAW; {ATR軌道中軌} IF(MAN>REF(MAN,1),MAN,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; IF(MAN>REF(MAN,1),MAN,DRAWNULL),COLORRED,LINETHICK1; IF(MAN=REF(MAN,1),MAN,DRAWNULL),COLORWHITE,LINETHICK4,POINTDOT; IF(MAN=REF(MAN,1),MAN,DRAWNULL),COLORWHITE,LINETHICK1; IF(MAN<REF(MAN,1),MAN,DRAWNULL),COLORGREEN,LINETHICK1; IF(MAN<REF(MAN,1),MAN,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT; {ATR軌道下軌} 下軌:MAN-ATR,NODRAW; IF(下軌>REF(下軌,1) AND SHOWATR=1,下軌,DRAWNULL),COLORFF00FF,LINETHICK4,POINTDOT; IF(下軌=REF(下軌,1) AND SHOWATR=1,下軌,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT; IF(下軌<REF(下軌,1) AND SHOWATR=1,下軌,DRAWNULL),COLORBLUE,LINETHICK4,POINTDOT; {ATR軌道上軌} 上軌:MAN ATR,NODRAW; IF(上軌>REF(上軌,1) AND SHOWATR=1,上軌,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; IF(上軌=REF(上軌,1) AND SHOWATR=1,上軌,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT; IF(上軌<REF(上軌,1) AND SHOWATR=1,上軌,DRAWNULL),COLORGREEN,LINETHICK4,POINTDOT; {做多箱底,跌破做空} ZD:=H-2*ATR; 做多箱底:IF(SHOWATRZD=1,HHV(ZD,N),DRAWNULL),COLORRED; {做空箱頂,,突破做多} ZK:=L 2*ATR; 做空箱頂:IF(SHOWATRZK=1,LLV(ZK,N),DRAWNULL),COLORGREEN; {布林趨勢(shì)} UB:IF(SHOWBOLL=1,MAN 1.64*STD(CLOSE,N),DRAWNULL),COLORGREEN; LB:IF(SHOWBOLL=1,MAN-1.64*STD(CLOSE,N),DRAWNULL),COLORGREEN; LUB:=BARSLAST(LLV(UB-LB,N)=UB-LB); IF(LLV(UB-LB,N)=UB-LB AND SHOWBOLL=1,LB,DRAWNULL),COLORBLUE,LINETHICK2; IF(LLV(UB-LB,N)=UB-LB AND SHOWBOLL=1,UB,DRAWNULL),COLORRED,LINETHICK2; {顧比倒數(shù)線(xiàn)主圖} P:=N; WH1:=IF(L=LLV(L,P),L,DRAWNULL); WH2:=BARSLAST(WH1!=DRAWNULL); WH3:=IF(WH2=0,H,REF(H,WH2)); WH4:=REF(BARSLAST(H>WH3),WH2 1) WH2 1; WH5:=IF(WH4=0,H,REF(H,WH4)); WH6:=REF(BARSLAST(H>WH5),WH4 1) WH4 1; WDSX:=IF(REF(H,WH6)<REF(L,WH6 1),REF(L,WH6 1),REF(H,WH6)); 進(jìn)6:=REF(BARSLAST(H>WH5),WH4 1) WH4 1; DSX:=IF(REF(H,WH6)<REF(L,WH6 1),REF(L,WH6 1),REF(H,WH6)); 進(jìn)場(chǎng):IF(CURRBARSCOUNT<=WH2 21 AND SHOWGUBI=1,IF(WH6=0,H,DSX),DRAWNULL),LINETHICK2,COLORRED; IF(CURRBARSCOUNT<=WH2 1 AND SHOWGUBI=1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORWHITE; DRAWTEXT(CURRBARSCOUNT=INTPART((WH2 21)*0.618) AND SHOWGUBI=1,進(jìn)場(chǎng),'進(jìn)場(chǎng)線(xiàn)'),COLORRED; H1:=IF(H=HHV(H,P),H,DRAWNULL); H2:=BARSLAST(H1!=DRAWNULL); H3:=IF(H2=0,L,REF(L,H2)); H4:=REF(BARSLAST(L<H3),H2 1) H2 1; H5:=IF(H4=0,L,REF(L,H4)); H6:=REF(BARSLAST(L<H5),H4 1) H4 1; 止損:IF(CURRBARSCOUNT<=H2 21 AND SHOWGUBI=1,IF(H6=0,L,REF(L,H6)),DRAWNULL),LINETHICK2,COLORGREEN; IF(CURRBARSCOUNT<=H2 1 AND SHOWGUBI=1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE; DRAWTEXT(CURRBARSCOUNT=INTPART((H2 21)*0.618) AND SHOWGUBI=1,止損,'止損線(xiàn)'),COLORGREEN;
|
|
來(lái)自: 昵稱(chēng)6897051 > 《股票》