Advanced Order Management » Advanced Order Aug 01, 2008 @ 01:33 PM (Total replies: 1) | |||||
Hello, I have a bit of a different scenario for a trade order strategy. I'm not sure if I can fit this into any of your current advanced order types. It's a bracket order with a trailing stop which moves only one time. An example Let's say the market is currently at 100. Buy Stop placed at 105. If filled Sell stop placed at 90 and sell limit placed at 125 OCO. I use the typical bracket order for that. I do not want to do a typical trailing stop with it. I want to move the stop one time only. If the market moves to 115 move the stop to 105. That's it. Don't move it again. Basically I want to move the stop to break even once the market moves a certain amount. But I'd rather not keep trailing the stop behind the market a certain number of ticks. Hope that makes sense. Any thoughts on how I can accomplish this? Thanks, -Bill |
|||||
Order Execution » Order Expiration Time Jun 23, 2008 @ 11:50 AM (Total replies: 1) | |||||
Is there a way within the API to set an order expiration "time". I know I can do a day order or a GTC order but would like to be able to have an entry order cancelled automaticalkly at say 11:30 am. (I don't like to enter currencies after Londo closes. ) I can manage on my side if I have to. Thanks, -TraderBetts |
|||||
Order Execution » 5 Year Note - Order Price Format Jun 20, 2008 @ 11:41 AM (Total replies: 2) | |||||
Great. Thanks Serge. |
|||||
Order Execution » 5 Year Note - Order Price Format Jun 20, 2008 @ 11:26 AM (Total replies: 2) | |||||
I'm trying to create an order in ZFU8 and can't quite crack the fraction price to decimal price conversion. I'm trying to create an order at 108 27.50 what would the decimal format of that price be? Thanks very much. -TraderBetts |
|||||
Advanced Order Management » Order Types - Synthetic Orders Jun 18, 2008 @ 04:22 PM (Total replies: 3) | |||||
I think that will do it Serge. Quick question. If mkt closes @ 4:30. is 4:30 ok for release time or should I set it to 4:29:59. Thanks. |
|||||
Advanced Order Management » Order Types - Synthetic Orders Jun 18, 2008 @ 12:36 PM (Total replies: 3) | |||||
I heard some chat about synthetic orders being developed. I'm looking to use an order type of "Market on Close". "Limit on Close" would be even better if possible. Do these fall into the realm of synthetic orders? Are they possible to use now? If not do you have an eta? Thanks, -TraderBetts |
|||||
API Support » ConvertFromOECContractList Jun 12, 2008 @ 08:34 AM (Total replies: 3) | |||||
perfect. thanks Serge. I actually found that line right after I made the post. I have it working fine now. And thanks for the tip on the dev server. I've been doing lots of testing and just started connecting to live today. Thanks again, -TraderBetts |
|||||
API Support » ConvertFromOECContractList Jun 12, 2008 @ 08:07 AM (Total replies: 3) | |||||
I'm currently only getting "index" contracts returned through this function. How do I get other contracts (specifically OJ) to be returned. btw - I'm connecting to the production server. Thanks, -TraderBetts |
|||||
API Support » Live API - bc.IsFuture Jun 06, 2008 @ 05:24 PM (Total replies: 1) | |||||
I just started incorporating the live API. The code has a problem at bc.IsFuture in the OECClient_OnLoginComplete method. The dev API version is 3.2. The live API versioni is 3.1.2.10 Because of this the contract dropdown (cbSymbol) won't populate, even if I comment out that one line. Is there another property / line of code I should use there. Thanks, -TraderBetts |
|||||
Market Data » Symbol List with Months available Jun 05, 2008 @ 10:23 AM (Total replies: 5) | |||||
Perfect. Thanks Serge! |
|||||
Market Data » Symbol List with Months available Jun 05, 2008 @ 12:11 AM (Total replies: 5) | |||||
Do you have a text file, excel spreadsheet, csv file or any other type of file that contains all of the markets you support with symbol, exchange and contract months available for each market. I can copy / paste symbols from your site pretty easily, however I can't find the contract months without going to the Exchange sites. Thanks very much for any help. -TraderBetts |
|||||
Advanced Order Management » Get Flat / Flatten Jun 04, 2008 @ 10:41 PM (Total replies: 2) | |||||
Thanks Serge. Yes, I do know to check for any working / executing orders before sending the market order. There are a few complexities there which is why I was hoping your servers would do it. No problem, I'll take care of it on my side. Thank again, -TraderBetts |
|||||
Advanced Order Management » Get Flat / Flatten Jun 04, 2008 @ 02:44 PM (Total replies: 2) | |||||
Just curious if there was a "get flat" or "flatten" function in the API. In other words, Let's Say I'm long 3 contracts in the ES. I would sell 3 contracts at market to get out as quickly as possible. I know I can track the open markets / positions and then create orders to exit the market accordingly. Was just hoping there was one nice function to call. Thanks, -TraderBetts |
|||||
Advanced Order Management » Order Draft - Primary Key Jun 04, 2008 @ 10:24 AM (Total replies: 2) | |||||
I see the OldOrderID being passed to OnOrderConfirmed. I think that will do the trick for me. Thanks Serge. |
|||||
Advanced Order Management » Order Draft - Primary Key Jun 04, 2008 @ 07:16 AM (Total replies: 2) | |||||
I would like to include the primary key from my database with an OrderDraft. Then when the order is confirmed I can grab that key and update my database with the appropriate information (order #, timestamp, etc.). Are there any custom properties of an OrderDraft I can update and later retrieve from the OnOrderConfirmed method? If not, is there another way I can accomplish this efficiently? I'd rather not have to iterate all open/working orders if possible. Thanks, -TraderBetts |
|||||
API Support » API 3.2 - C# 2008 May 29, 2008 @ 04:01 PM (Total replies: 4) | |||||
Thanks. I just commented out the PrepareControlEventHandlers for now and it opens fine. I'll track down the exact issue later. Thanks again for the quick response. -TraderBetts |
|||||
API Support » API 3.2 - C# 2008 May 29, 2008 @ 03:53 PM (Total replies: 4) | |||||
Thanks VERY much for the quick response Serge. that got rid of the error for basecontol.cs but I still get them for the other two lines. OrderDraftControl.cs line 21 & 32. Also, when I try to open MainForm I get errors on about 30 different lines / objects. I can send paste those errors if you want as well. Are there these types of issues in every form? Is this a C# 2008 problem? Thanks again, TraderBetts |
|||||
API Support » API 3.2 - C# 2008 May 29, 2008 @ 03:26 PM (Total replies: 4) | |||||
I recently registered and downloaded the API files. I imported the project into C# 2008. When trying to preview the design view of a few of the forms I get the following error: Object reference not set to an instance of an object. at OEC.API.Example.OrderDraftControl.PrepareControlEventHandlers() in C:\_Accurate\OpenECry\OEC API Example\OrderDraftControl.cs:line 32 at OEC.API.Example.BaseControl..ctor() in C:\_Accurate\OpenECry\OEC API Example\BaseControl.cs:line 34 at OEC.API.Example.OrderDraftControl..ctor() in C:\_Accurate\OpenECry\OEC API Example\OrderDraftControl.cs:line 21 I can't find any issues with the code on those lines. The controls OrderDraftControl & BaseControl open fine by themselves. Also, the application runs fine. I simply can't get to the form design view to modify the form objects. Any helps is appreciate. -TraderBetts |