Profile Picture

Forex order doesn't show up in InteractiveBroker

Posted By felixtjung 7 Years Ago
Message
Posted Monday November 29 2010
Hi, I need help in setting up rightedge to trade in forex at Interactive Broker. I couldn't get it to work at all. Could someone give me instruction how to do it? or at least some link if available? It seems RightEdge tries to submit the order and IB somehow ignore it.

Thanks,
Felix
Posted Tuesday November 30 2010
Is the order showing up in the live pending orders list? If so, it's possible that you don't have the live broker set to TWS. It might be using the paper trader instead.

If the order isn't showing up, it is probably getting rejected immediately by IB. Add the following code to your OrderCancelled method to figure out why:

if (!order.CancelPending)
{
   OutputWarning(string.Format("Order {0} cancelled: {1}", order.ToString(), information));
}

If neither of those help, then try posting a screenshot of your symbol setup for a forex symbol that's not working for you.

Thanks,
Daniel

Posted Tuesday November 30 2010
Ok, this doesn't work. But I got this error.

Name   Times Called   Local Time   Total Time

The thread '' (0x12e4) has exited with code 0 (0x0).
'RightEdge.exe' (Managed (v2.0.50727)): Loaded 'aztxonff'
Exception message: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Exception InnerException:
Stack Trace follows:
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at RightEdge.ServiceLoader.RefreshServices()
Error loading Service: C:\Program Files\Yye Software\RightEdge 2010\Plugins\fxClientAPI_2005.dll
'RightEdge.exe' (Managed (v2.0.50727)): Loaded 'rdxfimyh'
Exception message: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Exception InnerException:
Stack Trace follows:
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at RightEdge.ServiceLoader.RefreshServices()
Error loading Service: C:\Program Files\Yye Software\RightEdge 2010\Plugins\fxClientAPI_2005.dll


That error is outputted on warning log when I attached my visual studio to rightedge. I'll put my screenshot on the next post.
Posted Tuesday November 30 2010
Firstly, I've found some clue why it doesn't show up:

No security definition has been found for the request
IB Sent: 27: Market Buy ABV 0/10000 - Submitted
IB Sent: 28: Market Buy EUR/USD 0/10000 - Submitted
Position manager order updated: 27: Market Buy ABV 0/10000 - Submitted IB error/warning code 2109: Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed.
IB order status: 27 PreSubmitted
IB PreSubmitted: 27: Market Buy ABV 0/10000 - Submitted
The thread 'IBClient Read Thread' (0x98c) has exited with code 0 (0x0).
Error! id=-1 errorCode=2104
Market data farm connection is OK:cashfarm
Error! id=-1 errorCode=2104
Market data farm connection is OK:usfarm
Account time updated: 11/30/2010 7:57:41 PM Current time: 11/30/2010 7:57:48 PM Diff: -00:00:07.3477281
Account time updated: 11/30/2010 7:57:41 PM Current time: 11/30/2010 7:57:48 PM Diff: -00:00:07.3477281
Live system window pending ticks: 3
Position manager order updated: 27: Market Buy ABV 0/10000 - Submitted
Live system window pending ticks: 1
Position manager order updated: 28: Market Buy EUR/USD 0/10000 - Rejected IB error/warning code 200: No security definition has been found for the request
Error! id=32 errorCode=200
No security definition has been found for the request
The thread 'IBClient Read Thread' (0x15bc) has exited with code 0 (0x0).
Error! id=-1 errorCode=2104


So, IB doesn't know what is EUR/USD. RightEdge does submit it though. However, Stock works flawlessly.

I've attached all of my configuration. Let me know if I did something wrong.


I also noticed, future suffer same problem with forex. I found this error:

IB PreSubmitted: 35: Market Buy ABV  0/100 - Submitted
Position manager order updated: 35: Market Buy ABV 0/100 - Submitted
Position manager order updated: 36: Market Buy CL 112010 0/100 - Rejected IB error/warning code 200: No security definition has been found for the request
Error! id=23 errorCode=200
No security definition has been found for the request
Error! id=-1 errorCode=2104
Market data farm connection is OK:cusfuture

Attachments
ServiceSetup.png (361 views, 91.00 KB)
FolderSetup.png (340 views, 39.00 KB)
SymbolSetup.png (349 views, 46.00 KB)
Posted Tuesday November 30 2010
OH, please ignore my question. I found the problem. The problem is I have to enter the exact details of symbol information "manually" to make it work. It makes sense though because there are soo many ambiguity if I don't type it. However, somehow I expect this is done automatically. But, doing it manually doesn't hurt much anyway.

Thanks,
Felix


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems