Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order - properties

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

    Order - properties

    Hello,

    I am working on strategy where i trade more contracts. sometimes i do not get filled all contracts and i want to handle this in onorderupdate.

    I am looking to https://ninjatrader.com/support/help...html?order.htm

    and i do not understang what exactly mean properties
    Filled - is that number of contracts that are filled when sl or pt hit?
    Quantity - represents how many contracts i want trade?

    And next thing is
    OrderState.Partfilled - it is when i do not get filled all contracts? and position still remains?
    OrderState.Filled - means all contracts where filled?

    #2
    Hello kujista,

    Thanks for your post.

    The Filled property returns the filled amount of an order. For example, if 2 contracts were filled then this property would return a value of 2.

    The Quantity property represents the total quantity of an order. For example, if you submitted an order with a quantity of 100, order.Quantity would return a value of 100.

    Yes, OrderState.PartFilled means that part of the contracts that were submitted was filled.

    OrderState.Filled means that all of the contracts that were submitted were filled.

    Here is a reference sample from the help guide that you could view which demonstrates the use of OnOrderUpdate() and OnExecutionUpdate(): 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
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X