MA1:=ma(c,20);
A:=MA1+10;
B:=MA1-10;
if c>a then begin
tsellshort(tholding<0,0,mkt);
tbuy(tholding=0,1,mkt);
end
if c<b then begin
tsell(tholding>0,0,mkt);
tbuy(tholding=0,1,mkt);
end
if time>=151300 and tholding<>0 then begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end