主图
MA13:MA(CLOSE,13)COLORMAGENTA LINETHICK2;
MA30:MA(CLOSE,30)COLORCYAN LINETHICK3;
M:=20;
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,LINETHICK8,NODRAW;
箱底:IF(T2,B,B),POINTDOT,COLORGREEN,LINETHICK8,NODRAW;
STICKLINE(C,箱顶,箱顶,6,0),COLORRED;
STICKLINE(C,箱底,箱底,6,0),COLORFFC0CB;
赞 (0)