c1:=callstock(stklabel,vtclose,6,-1);
oo:=valuewhen(todaybar=1,open);
cc:=valuewhen(todaybar=1,close);
if oo-c1>=10 then buy(holding=0,1,marketr);
if cc-oo>=5 then buy(holding=1,1,marketr);
if enterbars>0 and holding>0 and l<=oo then sell(1,0,marketr);