![]() |
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
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
|
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
Jason
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
|
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?
Jason
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
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. |
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
|
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.
Jason
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |