HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Technically Speaking ›› Programming ›› IB API order submission question  


Post A Reply
    
aripplet
 

Registered: Mar 2010
Posts: 17

 

04-03-12 09:06 PM

Hi,

I am writing a forex scalping program with IB POSIX C++ API,

there is one question:

I need to submit one parent order and attach one trailing stop order and one profit taking order.

parent order is market order as I don't want to miss any opportunity, filling as fast as need. but trailing order can't be attached to market parent order.

if I attach a stop order first, I am not able to change it to TRAIL type later.

So what kind of solution you use?
1. submit parent order with limit order, you could put limit price higher than market price (for buy) to simulate a market order, but in this case I have to track the bid/ask as fast as I could, I don't even know IB is capable of it (no real tick price and latency between my computer and their servers).

2. submit parent order with MKT type, no child order, put a trailing order afterwards?

3. manually implement a TRAIL order by modifying stop price for STP order attached whenever necessary.

Thanks a lot for your help!

    Edit/Delete Quote Complain
dazzwater
 

Registered: Mar 2012
Posts: 62

 

04-05-12 01:34 AM

I hope someone answers your question, but I do have a question for you. You do understand that IB charges a $5 commission ($2.50 per transaction) for each trade, in addition to the 0.5 pip spread. Isn't that a bit too high for a scalping strategy to work?

    Edit/Delete Quote Complain
alibaba500
 

Registered: Apr 2012
Posts: 3

 

04-08-12 08:35 AM

Hi.

I am developing a system to measure some stock-price performance. And i am having trouble in some calculation.
Generally I try to get the price of a ticker every 10 mins. since a news or this ticker has been published. For example: assuming that cell a1 indicate the published time of a news message and cell b1 indicate the stock price at the news published, c1 will be the price of the ticker after 20 mins. Now the input for cell b1, c1 is the IB api stock price counter. Doing that with some excel calculation with if function does not work, it is not possible to save the price on cell b1, c1.

Does anyone know how I can save the data in a cell every 10 mins.?

Thanks a lot,
Dan

    Edit/Delete Quote Complain
aripplet
 

Registered: Mar 2010
Posts: 17

 

05-08-12 03:09 PM


Quote from dazzwater:

I hope someone answers your question, but I do have a question for you. You do understand that IB charges a $5 commission ($2.50 per transaction) for each trade, in addition to the 0.5 pip spread. Isn't that a bit too high for a scalping strategy to work?




with 10/10 pips tp/sl, I think 0.5pip + $5/$10($10 per pip for 100K), which is 1 pip cost, it's still possible to do it.

    Edit/Delete Quote Complain
    
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