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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    86 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    125 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    64 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 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