Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

scaling out...via ExitLong/ExitShort

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

    #16
    Position object updated inOrderUpdated

    Josh,

    Really appreciate your help so far. But I wrote some test program to see if the Ninja Framework updates Position object before OnOrderUpdate is called and based on your reply the answer was no.

    However the debugger shows that the Position object is updated before OnOrderUpdate is triggered. Please see attachment. I apologize in advance - I am not trying to call you out or anything, but it seems like I had probably not framed my question properly. I have to build an entire PositionManager class and handle multiple symbols for each asset if I am wrong with my assumption that "Position" object gets updated and then Ninja throws out the OnOrderUpdate event. Thats why I was wondering if you could check with any of your developers on this.

    Thanks Again, Please see attachement. Using Ninja 7.

    Also want to mention that I think this software is probably the best out of OpenQuant, TradeStation and many others out there.
    Attached Files

    Comment


      #17
      ariliveitup,

      I am not quite sure what you have going on there based on the screenshot, but you can quickly see how it works by setting up basic prints in OnOrderUpdate() and OnPositionUpdate() to see what happens when.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      649 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      573 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      576 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X