Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Persistent Forex position

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 Files

    #2
    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.

    Comment


      #3
      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 Files

      Comment


        #4
        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

        Could the position be related to positions reported in the TWS FX Trader and FX Portfolio section?

        Comment


          #5
          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.

          Comment


            #6
            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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            597 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X