Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Executions vs.Trades

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

    Executions vs.Trades

    Hi Ninja's,
    I am testing running an automated strategy. I needed to restart my computer with strategy where I am working with 1 contract only. I found after restart in Positions tab, that I have open position with 3 contracts and because my strategy was not in position, so I manually closed them.

    In attached picture you will see in executions that I bought 3 contracts, my current position is 0 however in trades I have trade only with 1 contract. Where are other 2 contracts?

    Thank you for your help in advance!
    Vladimir
    Attached Files

    #2
    Hi Vladimir,

    Please check your Control Center logs and see what kind of order was placed at 8:16:22. If you happened to have TraceOrders = true output that would be very useful in determining what your strategy did too.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Dear Josh,
      thank you for your reply. I checked log and there are 3 contracts bought, I attached log file. TraceOrders method I added to strategy.
      Regards!
      Vladimir
      Attached Files

      Comment


        #4
        Vladimir,

        The next step would be correlating that quantity of 3 with one of your exit orders. What you want to do is find the exit signal that goes by the name "Close". If you have not named your orders then it is a matter of pinning down which one triggered this order.

        After that you will need to pin down why it sent 3 instead of 1 via prints that track order quantity.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi Josh,
          this is something I already did at the beginning. You will se necessary data in first post attachement. Account I reseted at October 13th so it was quite easy. However, I can see buy of 3 at execution and only 1 at trades. This difference I do not understand.

          Comment


            #6
            Vladimir,

            I do understand you are seeing a discrepancy, but there is no way to explain anything except for looking into it at the code level. You need to find the code block in question and thoroughly debug it. See what type of order was actually sent. Did it actually send a quantity of 3 or a quantity of 1? From your screenshot there is no way to know which one is verbatim of the code.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            24 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            120 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            63 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            45 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X