Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on trade log

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

    Error on trade log

    Hello,

    I'm on unmanaged and to enter a long position I use:

    SubmitOrder(0, OrderAction.Buy, OrderType.Limit, EnterQuantity, EnterPrice, 0, "", "");

    I'm checking the trade log on strategy performance and in some trades the entry name sometimes is displayed as buy to cover instead of sumply buy.

    When I right click on the strategy and I select Strategy Performance the data of the trade is correct.

    Is this a bug?

    #2
    Hello,

    What is the strategy or account position directly before this BuyToCover is used? Are you flat before the BuyToCover is placed?

    Are these live or simulation trades? If live, who is your broker?
    MatthewNinjaTrader Product Management

    Comment


      #3
      I just discovered what is the problem and I think this should be considered a bug.

      When I display the trades of the strategy performance right clicking over the strategy on the Strategies tab it displays correctly the trades for all the historical of this strategy.

      The problem comes when I display the trades from the Account Performance tab for a period shorter than the whole period of activity. If the date cuts between the enter and the exit of a position then the data appears wrong. If I display the whole period the data is correct.

      Comment


        #4
        Can you please send me your database file so I can look into this further.

        You can do this by going to the Control Center-> Help-> Mail to Support-> check "Database file"

        Please reference the following thread in the body of the email:

        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Board game geek, 10-29-2023, 12:00 PM
        15 responses
        310 views
        0 likes
        Last Post givemefood  
        Started by notenufftime, Today, 07:09 PM
        0 responses
        2 views
        0 likes
        Last Post notenufftime  
        Started by fingers, 12-15-2023, 08:44 AM
        8 responses
        183 views
        0 likes
        Last Post notenufftime  
        Started by PapaKurt, Today, 06:40 PM
        0 responses
        4 views
        0 likes
        Last Post PapaKurt  
        Started by janx05, 01-27-2023, 12:28 PM
        8 responses
        71 views
        0 likes
        Last Post linkcou
        by linkcou
         
        Working...
        X