if c>x then begin
sellshort(1,0,thisclose);
buy(holding=0,1,thisclose);
end
if c<x then begin
sell(1,0,thisclose);
buyshort(holding=0,1,thisclose);
thisclose改成nextopen,交易设定为:走完k线下单