NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 10-27-2010, 05:56 PM   #1
astrolobe
Senior Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
Default Persistent Forex position

I have a forex position appearing in NT that I cannot close,

I had a sell order for 20,000 SGDJPY, but was only filled 1 of the 20,000 (no idea how that happens). My broker is IB. Price then moved away from my entry point, and the remaining 19,999 was never filled.
I tried to close the position, because it is of no value, but received the message that my order size was basically too small, and the order to close was automatically cancelled.

If I go into IB's TWS application, I have no SDGJPY positions or orders. However, in NT the position still exists (see attachment). I have restarted NT, but as soon as I connect to IB, the position reappears.
Attached Images
File Type: jpg Persistent position.JPG (32.5 KB, 6 views)
astrolobe is offline  
Old 10-28-2010, 02:24 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
Default

Hello astrolobe,

Can you please check if the order with the quantity of 1 executed in TWS as well. Are you sure TWS does not hold the same position as NinjaTrader?

Try the following test. While NinjaTrader is closed, please go to (My) Documents-->NinjaTrader 7-->db and transfer the NinjaTrader.sdf file (database) temporarily outside the db folder. Subsequently if you start NinjaTrader a new database is created. Can you please check if the position is still listed once connected to IB. If so, it indicates you receive this position information from IB once connected.

To restore your old database, please close NinjaTrader. Transfer the database back in the db folder and delete the newly created NinjaTrader.sdf file.

If the position only apppears using the current database, I suggest to add an execution manually via the Control Center-->Executions-tab to close the position. More information can be found at the following link.
http://www.ninjatrader.com/support/h...utions_tab.htm
NinjaTrader_Jason is offline  
Old 10-29-2010, 06:31 PM   #3
astrolobe
Senior Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Jason,
I followed your steps, and the position is still listed when connecting to IB with a new dB. I also checked, and order went through on the IB side, as I can see the 1 SGDJPY change in my currency balances on my IB statement. And the trade is listed in my activity statement from IB.
I added the manual execution in the executions tab (see attachment) as per your instructions. The attachment also shows that TWS has no open position/orders, but I still have one in NT.
Attached Images
File Type: jpg persistent position.JPG (103.3 KB, 5 views)
astrolobe is offline  
Old 11-01-2010, 02:24 AM   #4
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
Default

Please be aware of the following with IB.
http://www.ninjatrader.com/webnew/su...ivebrokers.htm

* The FOREX positions reported in NinjaTrader are based on the positions reported in TWS FX Trader and the FX Portfolio section of the TWS Account window. This is NOT the cash value reported in the Market Value section of the TWS Account window

Could the position be related to positions reported in the TWS FX Trader and FX Portfolio section?
NinjaTrader_Jason is offline  
Old 11-01-2010, 05:29 AM   #5
astrolobe
Senior Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Jason View Post
Please be aware of the following with IB.
* The FOREX positions reported in NinjaTrader are based on the positions reported in TWS FX Trader and the FX Portfolio section of the TWS Account window. This is NOT the cash value reported in the Market Value section of the TWS Account window...
I managed to resolve the issue with IB. My full order went in on IDEALPRO, but only 1 of the 20,000 was filled. When I tried to close it with a market order, it would not work because buying 1 SGDJPY is below the IDEALPRO limit, and when IB tried to put it through on IDEAL, it would fail because you cannot do a market order on IDEAL.

Do you know if there is a way to default to either IDEAL or IDEALPRO when placing an order? In TWS you can specify which one, but I am not aware of a way to do it in NT.
astrolobe is offline  
Old 11-01-2010, 05:57 AM   #6
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
Default

You will need to change the instrument settings in the Instrument Manager. Highlight the instrument and click Edit. Subsequently only have Ideal or IdealPro enabled as exchange and click Ok. Add the updated forex instrument to your instrument list.
NinjaTrader_Jason is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IB Forex traing and position management cicondo ATM Strategies (Discretionary Trading) 6 11-13-2008 06:44 AM
Is there a way to draw a persistent marker on a bar? tradefaz General Programming 1 09-18-2008 08:17 AM
Is the Zen-fire Connection Persistent? mgbloomfield Connecting 2 06-02-2008 11:50 AM
Closing a forex position with ExitLong() henry.omd Strategy Development 2 01-05-2008 12:31 PM
Persistent Orders That Do Not Require Renewal whitmark Suggestions And Feedback 1 08-02-2007 06:17 AM


All times are GMT -6. The time now is 04:16 PM.