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 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