Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to get the accurate current account positions in ExecutionUpdate events

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

    how to get the accurate current account positions in ExecutionUpdate events

    Case : I have 5 Short positions , I reverse the position from the chart trader using the "Rev" button

    The orders process from the logs are
    1. Buy to cover Quantity 5 --> closes the current short positions
    2. Buy Quantity 5 --> new Long position

    During the execution of the above orders on each event to ExecutionUpdate (of account) how do get the current account positions ?

    As these are 5 positions , not all 5 positions can be filled at the same time and some are partfilled(OrderState.PartFilled)

    Is there way to identify in the AddOn if this is an reverse order is triggered and the related orders...

    During the ExecutionUpdate event triggers, how to get the accurate current/existing account positions ?

    #2
    Hello Kdevineni,

    Are you meaning you have 5 positions on 5 different instruments or on 5 different accounts?

    Or do you mean you have 1 position with a quantity of 5?

    Do you mean orders and not positions?

    The position will be accurate when the <Account>.PositionUpdate event runs with the new position.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      have 1 position with a quantity of 5.




      The position will be accurate when the <Account>.PositionUpdate event runs with the new position-->>> Is there way I can get this accurate position during the ExecutionUpdate(filled or partfiled) event

      Comment


        #4
        Hello Kdevineni,

        You can accumulate each fill or part fill to a double variable to see the total filled amount before the position updates.

        The SampleOnOrderUpdate reference sample has sample code of this.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        557 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X