Hi,

I have some problems making a spread trade to IBrokers.

if(ret[2]==T & ret[1]=="short")
     {Id_1<-reqIds(twsOC)
      Id_2<-reqIds(twsOC)
      IBrokers:::.placeOrder(twsOC,fut1,twsOrder(Id_1,"Buy",1,"MKT"))
      IBrokers:::.placeOrder(twsOC,fut2,twsOrder(Id_2,"Sell",1,"MKT"))
      open.pos=T
       longShort="short"
       print("trade")
       }

I have tried the twsComboLeg, but with no success.

BR

Andres S. Susrud

	[[alternative HTML version deleted]]

