Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Twsapi
- Messages
Search
Re: twsapi: Re: Help! Cancel order
开云体育Flyin an airplane is really simple too if you know
how to do it. LOL
?
Thanks for pointing me in the right direction I
will see if I can figure this out.
?
Have a safe holiday.
?
Bruce
|
twsapi: Re: Help! Cancel order
Bruce, it's really simple.
existingId = Cells(ActiveCell.row, 13).value it means that existingId get's loaded with whatever there is in the column 13 of the active row on the spreadsheet. then it passes that number to tws1.cancelOrder, and it cancels it. Since you don't have spreadsheet, you need to store that ID number when you send your buy/sell order for execution. Or, a bit more complicated, request open orders, get their IDs and use one of them to cancel that order. MK --- In twsapi@y..., "Bruce Hawkins" <hawkinsk001@h...> wrote: First of all thanks for the response, here is the code in Excelstand alone program, that being said in the code above there is references to sheets and cells which don't exist in my prog. Iam not sure what to put in there place. Applications should appear. All the code for cancelling an order is on sheet2regarding VB what you sent would be helpful.with what I need and I can't figure it out.the > orders you are sending, and their status, or extract themfrom TWSVBA > Macros, and user's manual.have VBService. |
Re: twsapi: Re: Help! Cancel order
开云体育First of all thanks for the response, here is the
code in Excel
?
Sub cancelOrder()
??? clearError ??? ??? ' get existing id ??? Dim existingId As Long ??? existingId = Cells(ActiveCell.row, 13).value ?
??? ' cancel
order
??? Sheet5.Tws1.cancelOrder (existingId) End Sub ?
Maybe I did not make it clear but I am trying to
come up with a stand alone program, that being said in the code above there
is references to sheets and cells which don't exist
in my prog. I am not sure what to put in there place.
?
Thanks,
?
Bruce
|
twsapi: Re: Help! Cancel order
Open the workbook, and press Alt-F11. Visual Basic for Applications
should appear. All the code for cancelling an order is on sheet2 (Orders). What part of the code do you have a problem with, exactly? MK --- In twsapi@y..., "Bruce Hawkins" <hawkinsk001@h...> wrote: Thanks for the response, and if I was a little more savy regardingVB what you sent would be helpful. what I need and I can't figure it out. TWS (Tws1.reqOpenOrders). Once you know the ID, then use:VB code for canceling a pending order. I 've tried 6Service. |
Re: twsapi: Re: Help! Cancel order
开云体育Thanks for the response, and if I was a little more
savy regarding VB what you sent would be helpful.
?
I have looked at user's guide and Excel code trying
to come up with what I need and I can't figure it out.
?
But thanks anyway.
?
Bruce
|
Re: Help! Cancel order
Either: store in your application's globals the ID number of the
orders you are sending, and their status, or extract them from TWS (Tws1.reqOpenOrders). Once you know the ID, then use: Tws1.cancelOrder (orderId). It's all in the Excel spreadsheet VBA Macros, and user's manual. I hope this helps. MK --- In twsapi@y..., "Bruce Hawkins" <hawkinsk001@h...> wrote: I have been struggling with this for 2 days, does anyone have VBcode for canceling a pending order. I 've tried 6 ways from Sunday to make it work and I am totally lost. |
Re: twsapi: TraderGuard
Eduardo J Motta
I downloaded the Beast, but never run the executable.
toggle quoted message
Show quoted text
You actually do not need to run the interface to see an image o fit. the guy already placed a link to his web page ? where you can see what is does look like. Buy looking at it I noticed there was no place to place number of shares/contracts to Buy or sell, but this might well be inside one of its menu. hope this helps, Eduardo -----Original Message-----
From: Richard Foulk [mailto:richard@...] Sent: Thursday, July 04, 2002 3:44 AM To: twsapi@... Subject: Re: twsapi: TraderGuard Someone that's already taken the risk and loaded up that package should get a screen dump and post it so the group actually gets something useful out of this. I was going to do it but couldn't bring myself to take the risk. (Safe computing rule #1: Never run software of questionable origin.) Thanks Richard To unsubscribe from this group, send an email to: twsapi-unsubscribe@... Your use of Yahoo! Groups is subject to |
Re: automated login
--- In twsapi@y..., "Michel" <migurull@t...> wrote:
Hi,Password) from my calling application.I think that handling UI automation inside the application is superior to anything you could do with VB or WinTask. So, I just uploaded a file called AutoLoginWrapper.java. It is the source for a tiny program that registers code to look for the Login window opening, starts TWS, finds the Login button, and "presses" it. All of this inside the Java VM that is running TWS. Eventually, I will get around to making it automatically accept incoming connections as well. I'll also post a binary version and some instructions on how to use it for those who can't figure it out. |
Help! Cancel order
开云体育?I have been
struggling with this for 2 days, does anyone have VB code for canceling a
pending order. I 've tried 6
ways from Sunday to make it work and I am totally
lost.
?
Thanks,
?
Bruce |
Re: twsapi: TraderGuard
Richard Foulk
Someone that's already taken the risk and loaded up that package
should get a screen dump and post it so the group actually gets something useful out of this. I was going to do it but couldn't bring myself to take the risk. (Safe computing rule #1: Never run software of questionable origin.) Thanks Richard |
Re: twsapi: Poll Suggestion _ Request IB to provide ...
Richard Foulk
} I would like to suggest a poll:
} } Would you like to Request / Petition IB to make a fully viable Paper } Trading Server which will run on delayed data 24 / 7 for the purposes } of Trading System testing? (or something similar - the wording could } vary) Why bother. Most people trade with charts these days. Having replay and simulated broker capabilities on the charts (like Ensign now provides) is a much better way to paper trade. And if you are writing your own trading software (ala TWS API) then it should be easy enough to read your quotes from a saved file rather than the IB feed. } } Currently trades instigated on the IB Demo server evaporate when the } server shuts down. The responsibility of tracking trades for the } purpose of Trading System testing resides with the User on the Client } side. } } Wouldn't it be nice if IB provided it's customers with a fully closed } loop ATS server for the purposes of ATS fine tuning and System } testing? Email confimration, etc... } } Your thoughts solicited. } } Techguy For testing software I would prefer a sign-wave data stream or something like that. Then you could test stops and things repeatedly without guessing when the next move will be. Richard |
Poll Suggestion _ Request IB to provide ...
techguy1313
I would like to suggest a poll:
Would you like to Request / Petition IB to make a fully viable Paper Trading Server which will run on delayed data 24 / 7 for the purposes of Trading System testing? (or something similar - the wording could vary) Currently trades instigated on the IB Demo server evaporate when the server shuts down. The responsibility of tracking trades for the purpose of Trading System testing resides with the User on the Client side. Wouldn't it be nice if IB provided it's customers with a fully closed loop ATS server for the purposes of ATS fine tuning and System testing? Email confimration, etc... Your thoughts solicited. Techguy |
Re: twsapi: TraderGuard , IB TWS - Important msg!
Richard Foulk
} I am honestly upset at some of the comments written about
} TraderGuard. It seems as though instead of checking the program's } abilities and value, some are discussing irrelevant issues, such as } the size of the program, speculations of hidden trojans, and other } hidden agendas. Let me respond to some of those comments: Well gosh, advertising a product on the TWSAPI group is upsetting to some of us. That's not what the group was created for. Spammers are often dealt with harshly -- don't be surprised. Richard |
Re: RE : twsapi: Re: LINK to: TraderGuard
Richard Foulk
} Matt..........How in the world?
} } ...I completeley agree with you on this post and your subsequent... } } How in the world does something so simple end up using or being 23 } MB??? } } A full install of Qcharts is 13 MB } A full install of Erlanger Quote is 9 MB } A full install of WealthLab is 13.5 MB } A full install of TWS is 5.3 MB } } } I wonder if this was not written using less then Pro VB and is not } optimized? } } Anyway... } } I believe that no one in their right mind is gonna fork over 150 } bucks on a software that they are unable to test on the securities } they trade...hasn't been scrutinized and stressed by a beta } team...and appears to consume resources at a prodigious rate out of } step with the task it accomplishes...is a black box that has no } documentation, no help file, no accompanying test results on } performance....and whose install process attempts to overwrite } duplicate OCX instead of checking mereley for their instance in the } sys files... } } etc etc } } Hate to blow your bubble...sorry } } Scott } Yep, $150 is pretty ridiculous. Especially when there are other packages that do much more for that price. And yes, the enormous size is an indicator that the programmer doesn't know what he's doing. Once the API matures (comes out of beta) there will no doubt be many such packages. And many will be free and with source code so the user can adapt them to their needs, and be able to trust the code. Richard |
Re: Modify Order Without Transmit
marinindextrader
The place order call need not be called then.
When you are using the standard TWS, and you craft up an order on the grid, that order is nothing more than an array in a memory slot somewhere. When you tag the transmit button it is then sent. Internally the TWS has executed the place order call. If what you want to do is emulate this behaviour, then create an 2 dimensional variant array in memory, and store your unsent but ready to go orders. You can display this information however you see fit: grids, labels etc... Then like in TWS, you selected the displayed order and give it focus, and then you send it with a transmit command. Hope this helps Scott --- In twsapi@y..., "Bob Stevens" <rsteve42@b...> wrote: I am trying to modify an order without transmitting it. However,TWS transmits the order on the update, even with the Transmit propertyFalse. I am using VB with the ActiveX control, and the TWS demo fortesting. Here is the scenario:works. Let's say the order ID is 72.limit price, again with no transmit. The limit price is changed in TWS,but TWS transmits the order. |
Modify Order Without Transmit
I am trying to modify an order without transmitting it. However, TWS
transmits the order on the update, even with the Transmit property False. I am using VB with the ActiveX control, and the TWS demo for testing. Here is the scenario: o Call PlaceOrder to place a buy limit order, no transmit. This works. Let's say the order ID is 72. o Call PlaceOrder again with the same order ID (72), changing the limit price, again with no transmit. The limit price is changed in TWS, but TWS transmits the order. Any ideas? Thanks |
Re: Tip for Yahoo Users Email Managment
marinindextrader
Dude....it should route all other mail to the "other folder", this
mail should route to the in box direct.... Your banned heheheh LOL just kidding Scott --- In twsapi@y..., "techguy1313" <techguy1313@y...> wrote: If you are a Yahoo Email User, the following tip may help youmanage the intense mail flow from this User Group.Folder you would like your mail delivered to, i.e. TWSAPI Yahoo GroupMail. <OK>.mail will now route to this folder. |
Tip for Yahoo Users Email Managment
techguy1313
If you are a Yahoo Email User, the following tip may help you manage
the intense mail flow from this User Group. Set an Email Mail Management filter to route Group Mail to an individual folder: 1. From the Yahoo Mail Sidebar, click on Options. 2. Select Filters from under the Mail Management Header. 3. Select Create. 4. Go to: Subject <contains> the phrase <twsapi>. 5. Select Deliver Message to <New Folder>. 6. An Explorer User Prompt will pop up. Put in the name of the Folder you would like your mail delivered to, i.e. TWSAPI Yahoo Group Mail. <OK>. The Filter list will now show your new routing filter. All Group mail will now route to this folder. Hope this helps un-clutter your life. |
to navigate to use esc to dismiss