T2:=CONST(BARSLAST((CURRBARSCOUNT (CC+T1)) AND (HIGH T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT (CC+T2)) AND (HIGH T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
{猎击线:T3HIGH,LINETHICK2,COLOR0000FF;}
猎击线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLOR0000FF;
DRAWTEXT(ISLASTBAR, T3HIGH, '猎击线')LINETHICK1,COLOR0000FF;
TT1:=CONST(HHVBARS(HIGH,P));
TT1LOW:=CONST(REF(LOW,TT1));
CC1:=CONST(CURRBARSCOUNT);
TT2:=CONST(BARSLAST((CURRBARSCOUNT CC1+TT1) AND (LOW TT1LOW)));
TT2LOW:=CONST(REF(LOW,TT2));
TT3:=CONST(BARSLAST((CURRBARSCOUNT CC1+TT2) AND (LOW TT2LOW)));
TT3LOW:=CONST(REF(LOW,TT3));
止损线:DRAWLINE(CURRBARSCOUNT=TT3+1, TT3LOW, ISLASTBAR, TT3LOW,1),LINETHICK2,COLORGREEN;
DRAWTEXT(ISLASTBAR, TT3LOW, '止损线')LINETHICK1,COLORLIGREEN;