HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Technically Speaking ›› Automated Trading ›› Submit orders to IB from textfile  


Post A Reply
    Page 2 of 3:   1   2  3  
sheepsucker
 

Registered: Jun 2009
Posts: 213

 

09-15-12 09:50 PM

Thank you all for your suggestions! Will look into them to see if I can avoid re-inventing the wheel this time.

No suggestions for scripts using the R package IBrokers so far? The rest of my algorithms are in R, altough that doesnt actually matter in this case.

    Edit/Delete Quote Complain
stevegee58
 

Registered: Feb 2004
Posts: 2405

 

09-15-12 09:56 PM

Bracket trader does this. Put the order in a text file in a particular folder and BT reads it.

    Edit/Delete Quote Complain
ddude
 

Registered: Dec 2006
Posts: 22

 

09-15-12 10:42 PM

Why not use twsOrder and placeOrder in IBrokers package in R???

    Edit/Delete Quote Complain
2rosy
 

Registered: May 2012
Posts: 336

 

09-16-12 11:28 PM

"""
NYSE,ibm,108.22,BUY,400
SMART,msft,38.36,BUY,300
"""
f=open('c:/tmp/orders.txt')
for x in f.readlines():
v=x.split(',')
order = Order(v)
twsclient.placeOrder(order)


PM me if you want the Order() and twsclient code

    Edit/Delete Quote Complain
trademeisters
 

Registered: Sep 2012
Posts: 55

 

09-17-12 04:39 PM

I have done this in tradelink. if you have a file like


code:
IBM,true,100,500.000000,0.000000,,,,STK,USD,,1,DAY,0,0,,0 SPY_111223C119000 OPT,true,1,0,0,,CBOE,ZXBZA,NIL,USD,,975804660,D,20111206,144523,,0


you can read and send them in using OrderImpl.Deserialize(line) with sendorder.

    Edit/Delete Quote Complain
sle
 

Registered: Apr 2003
Posts: 1609

 

09-17-12 06:00 PM


Quote from ddude:

Why not use twsOrder and placeOrder in IBrokers package in R???


Do you have experience with it? I've heard conflicting things about it, especially about some stability issues. We looked at it briefly when we considered PBing with IB, but decided against it. Pretty reasonable interface, though.

    Edit/Delete Quote Complain
    Page 2 of 3:   1   2  3  
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider