D1:=高点M2;
D2:=D1=BARPOS;
P1:=高点M1;
P2:=P1=BARPOS;
D7:=低点E2;
D8:=D7=BARPOS;
P7:=低点E1;
P8:=P7=BARPOS;
DRAWLINE(D2,HIGH,P2,HIGH,1),LINEDOT,colorFFFF;
DRAWLINE(D8,LOW,P8,LOW,1),LINEDOT,colorFFFF00;
W1:=水平M1;
W2:=W1=BARPOS;
W7:=水平M4;
W8:=W7=BARPOS;
DRAWLINE(W2,LOW,W2+1,REF(LOW,1),1),LINEDOT,colorFFFF;
DRAWLINE(W8,HIGH,W2+1,REF(HIGH,1),1),LINEDOT,colorFFFF00;
总交易日:BARPOS,LINETHICK0;
DRAWTEXTEX(1,0,20,20,'总交易日:'+NUMTOSTR(BARPOS,0)+''),LINETHICK7;
N:=BARPOS;
M:=' ■ 第:'+NUMTOSTR(N[SYSPARAM(1)],0)+' 交易日';
DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(1),LOW,M),ALIGN1,PXUP14,colorFFFF;