开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

How do you?+ TWS API VB files for newbies - 1st POST


multicen2002
 

will you add a code line to your post ??
or sample to file area?? It will take you extra 2 more minutes.
Thanx


Andrew

--- In twsapi@y..., "qnolte" <q@n...> wrote:
Use the "nextValidId" event to get a valid Id to use each time.

--- In twsapi@y..., "Bruce Hawkins" <hawkinsk001@h...> wrote:
How do I get Tws.ocx on to a new form?

I tried the following on the Demo and it worked except I have to
keep increasing the order ID to place more orders.

Call Tws1.placeOrder(3030, "BUY", 1, "ES", "FUT", "200209", _
0, "", "GLOBEX", "", "LMT", 1000.00, 0)

How do you work around this?

Any input appreciated,

Bruce

P.S. The form I am using now (which was a simple Demo I got from
Jaba) I beleive has an earlier ver. of Tws.ocx