Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

{NinjaScript} NT8 - Unmanaged Approach - Get Created Order

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

    {NinjaScript} NT8 - Unmanaged Approach - Get Created Order

    Hello!
    Im creating orders like that:

    SubmitOrderUnmanaged(1, OrderAction.Sell, OrderTy pe.StopMarket, execution.Order.Filled, 0, executio n.Order.AverageFillPrice - StopDistance * TickSize, oco, "EnterSell");

    How can I get the Order Object generated by this code?
    I need to store this Order in a order list: List<Order> and ask anytime if this order was filled or not.
    Can you help me? Some sample code?
    Thank you so much

    #2
    Hello fscabrera03,

    Thank you for your post.

    You could pretty much do the same thing as this managed example from our help guide, just with unmanaged orders instead. Basically, you'd monitor in OnOrderUpdate, check the Signal Name of the order being processed, and then you can assign that order object to a List:

    https://ninjatrader.com/support/help..._and_profi.htm

    Please let us know if we may be of further assistance to you.

    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PaulMohn, 09-15-2021, 05:25 AM
    21 responses
    106 views
    0 likes
    Last Post omololu
    by omololu
     
    Started by mcosta72, Today, 04:09 PM
    0 responses
    15 views
    1 like
    Last Post mcosta72  
    Started by Quanto, Today, 02:50 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Trader108, Today, 01:45 PM
    2 responses
    15 views
    0 likes
    Last Post Trader108  
    Started by johnok, Today, 01:20 PM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X