Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I find out if my execution has made me flat?

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

    How do I find out if my execution has made me flat?

    I am using OnExecutionUpdate(.... For execution logic. I see that .IsExit will tell me if its an exiting execution.

    How do I find out if the execution has made me flat?
    So if I have 2 positions in the market the first one exit, nothing happens, then when the second closes, making me flat..
    That's what I want to know.
    Last edited by lakersfan; 06-28-2020, 02:58 PM.

    #2
    Hi lakersfan,
    https://ninjatrader.com/support/help...tionupdate.htm
    Look for the description of OnPositionUpdate(). The example in the help guide might be exactly right for you.
    NT-Roland

    Comment


      #3
      Hello lakersfan,

      NT-Roland is correct, check the Position in OnPositionUpdate().

      That said the execution also has a MarketPosition property.
      https://ninjatrader.com/support/help.../execution.htm
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by voltation, Today, 04:32 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by coopgrafik, Today, 03:44 PM
      2 responses
      24 views
      0 likes
      Last Post coopgrafik  
      Started by cionjay, Today, 02:36 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by onnb1, Today, 02:08 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by omermirza, Today, 01:15 PM
      4 responses
      20 views
      0 likes
      Last Post omermirza  
      Working...
      X