Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IB Known Bug Msg

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

    IB Known Bug Msg

    Hi,

    When installing NT, a pop up window says:

    "There is a known bug with Interactive Broker's TWS where a position's average entry price is reported zero. This only affects futures contracts. When NinjaTrader detects this bug, it attempts to calculate the position's average entry price based on historical execution data. If any historical execution data is missing (can happen if initiating a position in TWS while Ninja Trader is disconnected and then carrying that position overnight) the position's average entry price will be slightly incorrect ..."

    My strategy uses the position's average entry price extensively and thus it is very important to understand how NT "attemtpts to calculate the position's average entry price based on historical execution data".

    Few questions:

    1) Does the known bug still exist with newer versions of TWS?

    2) What is this "historical execution data"? Isthat meanNT stores everyexecution in itsdatabase? If I have lots of open positions (say hundreds) would it be very slow in calculating that average entry price?

    3) Is there any other way I could get the real position's average price instead of calculating it from "historical data", which may be different from the real average price?

    Thanks!



    Gordon

    #2
    imported post

    Hi Gordon,

    1) This bug can always potentially exist.
    2) When connected, NT stores fills as they come in. There is no way for us to request historical data from IB, this is a limitation on their end. If executions occur when NT is not connected, they will not make it to the database. You would not see any speed degradation when NT calculates position size, this happens before the connected status is reported.
    3) No.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      Hi,

      I saw this from the release notes of Version 5.1.1.1 Beta:

      "Improved: IB adapter now supports native TWS reported average entry price"

      Is that mean the average entry price is now native and not calculated from NT fill database?

      Thanks!



      Gordon

      Comment


        #4
        imported post

        It does but there is still that work around logic in place in case NT detects an average price of "0" reported from TWS.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        8 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,613 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Yesterday, 05:56 PM
        0 responses
        10 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        20 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Working...
        X