tbuyshort(1,2-tbuyholding(1),lmt,DYNAINFO(34)-0.0003);
END
if pk and tbuyholding(1)>0 then
begin
tsellshort(1,tbuyholding(1),lmt,DYNAINFO(28));
END
//if flag=0 and 100*TOPENPROFIT/(close*TACCOUNT(42)*tsellholding(1)*MULTIPLIER)>=10 and tsellholding(1)>0 then
if flag=0 and 100*TOPENPROFIT/(close*tbuyholding(1)*MULTIPLIER)>=15 and tbuyholding(1)>0 then
begin
tsell(1,50%,lmt,DYNAINFO(28)),PERTRADER;
flag:=1;
END