Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Managing orders and accessing their properties

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

    Managing orders and accessing their properties

    I've been working on a strategy that updates an order's stop / profit target individually. One thing I struggle with is a simple way to access an order's properties, and change them. I can't seem to find a reliable way to get an order's properties without storing custom class values.

    With ATM, I can only create/update but not get the properties by order ID? Without ATM, I can use signals, but I don't know how to find the price paid (after slippage). Is there an ideal way to go about managing orders individually?

    #2
    Hello Skifree,

    Thanks for your post.

    You could consider using OnExecutionUpdate() or OnOrderUpdate() to track order objects and get information about those order objects, submit orders, or change orders to a new price.

    See the help guide documentation below for more information about these event-driven methods.

    OnExecutionUpdate(): https://ninjatrader.com/support/help...tionupdate.htm
    OnOrderUpdate(): https://ninjatrader.com/support/help...rderupdate.htm

    Here is a reference sample demonstrating the use of these methods as well: https://ninjatrader.com/support/help...and_onexec.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X