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

Unmanaged Strategy IOrder versus Order

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

    Unmanaged Strategy IOrder versus Order

    Right now, I'm guessing that IOrder might be obsolete in NT8?; and that NinjaTrader.Cbi.Order is the readonly handle
    to a specific order. I am doing an Unmanaged strategy; and want to hold this Order in an instance of an OrderWrapper custom
    class. I could be wrong, but don't see IOrder in Object Browser with Visual Studio?

    NinjaTrader.Cbi.Order "Represents a read only interface that exposes information regarding an order" which sounds
    like an IOrder would be meant to do.

    Looks to me like SubmitOrderUnmanaged returns the type NinjaTrader.Cbi.Order.

    Could you confirm that, or fix my thinking? THANKS


    hyperscalper

    #2
    Hello Hyper,

    Thanks for your post.

    Yes, IOrder is no longer used and direct Order objects are used. You may reference the Code Breaking Page of the Help Guide for more information under Implementation Changes > Strategies, Orders, and Accounts. I would recommend giving this a read for anyone who is transitioning from NinjaTrader 7.

    Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm

    Order Class - https://ninjatrader.com/support/help...#TheOrderClass

    An example Unmanaged strategy that uses Order objects is attached as well.

    We look forward to assisting.
    Attached Files
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    4 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X