ma10:=stkindi('','ma.ma1(10)',0,6); ch:=callstock(stklabel,vtclose,24,3); c5:=callstock(stklabel,vtclose,2); if cross(ch,ma10) then buy(holding=0,1,market); if cross(ma10,c5) then sell(1,0,market); if cross(ma10,ch) then buyshort(holding=0,1,market); if cross(c5,ma10) then sellshort(1,0,market);