A1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,1)+1);{N=5:
A2:=A1>REF(A1,1);
B1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,2)+1);
B2:=B1>REF(B1,1);
C1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,3)+1);
C2:=C1>REF(C1,1);
A11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,1)+1);
A21:=A11>REF(A11,1);
B11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,2)+1);
B21:=B11>REF(B11,1);
C11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,3)+1);
C21:=C11>REF(C11,1);
高:IF(A1,PEAK(1,N,1),DRAWNULL),COLORRED,LINETHICK4;
低:IF(A11,TROUGH(2,N,1),DRAWNULL),LINETHICK4;
①:DRAWLINE(B2,H,A2,H,1),LINETHICK3;
②:DRAWLINE(C2,H,B2,H,1),COLORRED,LINETHICK3;
③:DRAWLINE(C2,H,A2,H,1),COLORLIBLUE,LINETHICK3;
④:DRAWLINE(B21,L,A21,L,1),COLORYELLOW,LINETHICK3;
⑤:DRAWLINE(C21,L,B21,L,1),LINETHICK3;
⑥:DRAWLINE(C21,L,A21,L,1),COLOR0099FF,LINETHICK3;
{日高:HDRAWLINE(A1,H,B1,H,0),COLOR0011EE,LINETHICK2;
日低:LDRAWLINE(A11,L,B11,L,0),LINETHICK2;}
射3: DRAWLINE(H=HHV(H,3),H,L=LLV(L,3),L,0);
射3X: DRAWLINE(L=LLV(L,3),L,C=HHV(C,3),L,0);
射7: DRAWLINE(H=HHV(H,7),H,L=LLV(L,7),L,0);
射7X: DRAWLINE(L=LLV(L,7),L,H=HHV(H,7),L,0);
射21: DRAWLINE(H=HHV(H,21),H,L=LLV(L,21),L,0);
射21X: DRAWLINE(L=LLV(L,21),L,H=HHV(H,21),L,0);
射35: DRAWLINE(H=HHV(H,35),H,L=LLV(L,35),L,0);
射35X: DRAWLINE(L=LLV(L,35),L,H=HHV(H,35),L,0);
射49: DRAWLINE(H=HHV(H,49),H,L=LLV(L,49),L,0),;
射49X: DRAWLINE(L=LLV(L,49),L,H=HHV(H,49),L,0);
压:HHV(H,30),COLOR0000FF,LINETHICK2;
支:LLV(L,30),COLOR00FF00,LINETHICK2;
ZX:ZIG(3,11),COLORWHITE,LINETHICK2;
持股:ZX>REF(ZX,1);
持币:ZX
DRAWTEXT(射49=L,H*1.02,'买') AND 持股=0,COLORRED;
DRAWTEXT(压=H AND ZX=C,L*0.98,'卖');