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:



    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 Aviram Y, Today, 05:29 AM
    0 responses
    2 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cls71, Today, 04:45 AM
    0 responses
    6 views
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    218 views
    1 like
    Last Post PaulMohn  
    Working...
    X