压力支撑位主图

进出线1:MA(C,13);

进出线2:MA(C,21),COLORRED;

方向线:MA(C,89),COLORGREEN,LINETHICK2;

STICKLINE(进出线1>进出线2,进出线1,进出线2,0,0),COLORRED;

STICKLINE(进出线1<进出线2 ,进出线1,进出线2,0,0),COLORBLUE;

DRAWKLINE(H,O,L,C);

M:=10;

A1:=REF(C,M)=HHV(C,M*2);

B1:=FILTER(A1,M);

C1:=BACKSET(B1,M+1);

HD:=FILTER(C1,M);

A2:=REF(C,M)=LLV(C,M*2);

B2:=FILTER(A2,M);

C2:=BACKSET(B2,M+1);

LD:=FILTER(C2,M);

AZ1:=REF(H,BARSLAST(HD));

B:=REF(L,BARSLAST(LD));

T1:=BARSLAST(HD);

T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);

箱顶:IF(T1,AZ1,AZ1),POINTDOT,COLORFFC0CB,LINETHICK3,NODRAW;

箱底:IF(T2,B,B),POINTDOT,COLORGREEN,LINETHICK3,NODRAW;

STICKLINE(C,箱顶,箱顶,6,0),COLORRED;

STICKLINE(C,箱底,箱底,6,0),COLORFFC0CB;

(0)

相关推荐