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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X