nn1:=STRLEFT(stklabel ,1 );drawtext(islastbar,c,nn1);kk:=STRICMP( 'p',nn1 );
if kk<>0 then exit;
把這段代碼放在策略最后
或者
if kk=0 then begin
策略代碼
end