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 LeroyO, Today, 04:09 PM
      0 responses
      4 views
      0 likes
      Last Post LeroyO
      by LeroyO
       
      Started by sidlercom80, Today, 04:57 AM
      2 responses
      29 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by Tartagliagroup, Today, 02:11 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by rickyblah12, Today, 01:33 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by rcloutier, Today, 01:17 PM
      4 responses
      14 views
      0 likes
      Last Post rcloutier  
      Working...
      X