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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X