ss:=3;
m1:ma(c,5);
m2:ma(c,10);
if cross(m1,m2) then buy(holding=0,1,marketr);
if cross(m2,m1) then buyshort(holding=0,1,marketr);
if c-enterprice>5 and holding>0 then sell(1,0,marketr);
if enterprice-c>6 and holding>0 then sell(1,0,marketr);
if c-enterprice>6 and holding<0 then sellshort(1,0,marketr);
if enterprice-c>5 and holding<0 then sellshort(1,0,marketr);