Re: twsapi: Re: Newbie Help on Code !!
Scott,
OCA is a property of the ocx. Set it before you place the order (i.e.
Tws1.oca = "1234").
.. Dan
PS. I sent you a private email about QCharts/QFeed. Can you help me
out?
By
Daniel Rosen <drosen@...>
·
#563
·
|
Re: Newbie Help on Code !!
sending
is
The oca group is one of the strings within the order
structure/object. I dont know about the ActiveX thing, but at the
lower level, within the order structures is a string for the oca
By
grozzie2
·
#562
·
|
Re: Newbie Help on Code !!
There should be a method to trigger an event that simply reports the
equivilent of the transaction screen one gets when they tag the
transactions icon on the TWS. They should just pass us an array
By
marinindextrader <marinindextrader@...>
·
#561
·
|
Re: Newbie Help on Code !!
But the questions remains...How do you flag an OCA group when sending
to/through the TWS?
There is no param that defines the group. Only on the reqOpenOrder is
their any refrence in my
By
marinindextrader <marinindextrader@...>
·
#560
·
|
Re: Newbie Help on Code !!
write
The reason is simple. To protect oneself from the event of an isp
failure, you place target exit and stop exit, join them as an oca
group. Then, should your program become disconnected,
By
grozzie2
·
#559
·
|
Re: ReqOpenOrders and next order id
No. You can call reqOpenOrders only once. Than you will got all open
orders. And I think this is ok.
I do the following in my Delphi program:
I have a List (TList object) which can stores all order
By
bee_jay_61 <no_reply@...>
·
#558
·
|
Thanks Scott!
Appreciate your patience!
You're the KING!
Glad to be here!
Frank
By
snipertrader2000 <fm900@...>
·
#557
·
|
Re: Newbie Help on Code !!
Just uploaded my project to the files section. This is what I'm
trying to duplicate with the API - after an entry, I place a limit
target exit and a stop exit as an OCA order. Having a preset
By
larrysy.geo <larrysy@...>
·
#556
·
|
Re: Newbie Help on Code !!
I dont believe you can.
You can snag the information sort of through reqOpenOrder method
triggering the openOrder2 Event...Which would feed you back the
ocaGroup in the openOrder2 Sub...But those
By
marinindextrader <marinindextrader@...>
·
#555
·
|
Re: Newbie Help on Code !!
The fix worked !!
My next question is can you send in an order as part of an OCA
group ? And, how do you do it?
Thanks,
Larry
By
larrysy.geo <larrysy@...>
·
#554
·
|
Re: Newbie Help on Code !!
You are correct.
I am sorry for the confusion.
The variable in the TWS1 call was "price" not "lmtPrice", and was
sending a null value to TWS.
I changed the file and uploaded it correctley. I
By
marinindextrader <marinindextrader@...>
·
#553
·
|
Re: Remote TWS tip
Ah! There were two problems. First, my updater thought I was running
the latest version, but it was actually 667, which did not accept
remote connections. Second, the Java socket client has not
By
kgeis
·
#552
·
|
Re: Newbie Help on Code !!
Hi Scott,
Thanks for the quick reply, but it didnt work. I was tinkering with
the 1_Project_PlaceOrder.zip in the files section. The
PlaceNewOrder is a subroutine in that program. The demo
By
larrysy.geo <larrysy@...>
·
#551
·
|
Re: twsapi: Re: ReqOpenOrders
Honestly, I don't see why IB would try to make that work. They should at least warn about multiple logins to the same account though.
By
Nick <nickrbox@...>
·
#550
·
|
Re: ReqOpenOrders
This explains why the TWS platform itself gets corrupted in terms of
showing orders and what not.
Try opening concurrent instance of TWS on two seperate platforms.
Placing a trade on one does not
By
marinindextrader <marinindextrader@...>
·
#549
·
|
ReqOpenOrders
So far in my travels with the socket interface to IB, ReqOpenOrders only reports the orders that were open when you connect to TWS. After that the OrderStatus message tells you about fills, etc.
I
By
Nick <nickrbox@...>
·
#548
·
|
Re: Newbie Help on Code !!
When using literal declaration [not advised] you must use 888.00 and
0.0
As your type in these literal values...your IDE will then default the
literal to a Double type and should display 888# and
By
marinindextrader <marinindextrader@...>
·
#547
·
|
Re: Remote TWS tip
Build 769 or 770 for that.
Have you got reqOpenOrders to work on demand rather
than just once at startup ?
By
grozzie2
·
#546
·
|
Re: twsapi: Asset US format information
The TAL website contains the full API docs. The RealTick charting program uses the same API so everything you want to do is possible.
You need to read the docs and decide if TAL is for you. You can
By
Nick <nickrbox@...>
·
#545
·
|
Newbie Help on Code !!
Hi,
I'm a newbie tinkering with the VB codes on the file section. I
want to place a limit order instead of a market order and modified
the original code to the following line but it wont work -
By
larrysy.geo <larrysy@...>
·
#544
·
|