Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddOn Order Creation and Submission

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

    AddOn Order Creation and Submission

    In an AddOn, with identical Order parameters, is there any practical difference between these two approaches:
    1. Use Account.CreateOrder to create an Order then submit with Account.Submit
    2. Create an Order with new Order() (including the Account parameter) then submit with Account.Submit
    The only practical difference I can see so far is simply that with Account.CreateOrder, it seems the Order is immediately entered into the NT database, whereas with new Order(), it is only entered after it is submitted. The practical consequence of this is that if an Order is subsequently not submitted for some reason, it cannot easily be removed from the NT database if one has used Account.CreateOrder.

    Comments on these two approaches (strengths/weaknesses) appreciated.

    Thanks.
    Last edited by jeronymite; 01-17-2022, 05:40 PM.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    Thanks for writing in.

    When using the AddOn Approach, it is best practice to use CreateOrder() to create an order. That order could then be submitted by calling Account.Submit(). It is not suggested to create new order objects with new Order().

    Note that you are welcome to do other things, such as using new Order(), but you would need to navigate those paths on your own since it goes against best practices. That said, this thread will be open for community feedback as well.

    See the help guide documentation below for more information.
    CreateOrder(): https://ninjatrader.com/support/help...reateorder.htm
    Submit(): https://ninjatrader.com/support/help...nt8/submit.htm

    Let us know if we may assist further.
    <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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    638 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X