以下是通达信三根K线重叠的分享(无源码的请下载附件导入)
A1:=L>REF(L,1) AND LREFX(L,1) AND H>REFX(L,2) AND H>REFX(L,3);
A2:=FILTER(A1,BARSLAST(A1)+10);
A4:=A1 AND A2;
DG:=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));
GD:=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));
A5:IF(REF(A4,1),H,0),NODRAW;
STICKLINE(REF(A4,2),REF(GD,2),REF(DG,2),13,-1),COLORWHITE;
DRAWKLINE(H,O,L,C);
STICKLINE(A4,DG,GD,3,0),COLORRED;
721411025.jpg
|