Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IOrder

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

    IOrder

    Hello,

    is it possible to use IOrder in an indicator, instead of strategy?

    I need to pass an order from an indicator and I'm trying Order.CreateOrder, nevertheless I need something more structured.

    Any hint?

    Thanks.

    #2
    Hello,

    Thanks for the note.

    Unfortunately anything such as order or strategy related is not supported in the indicator class.

    They are two separate classes(Indicator and Strategy) and in c# you cannot create a class that inherits from 2 classes this would not be possible.

    You would need to pass information about the order over in a format that is not iOrder but instead something like a string or some other data type that you could parse such as writing to a text file.

    -Brett
    BrettNinjaTrader Product Management

    Comment


      #3
      Thanks.
      Is there a way to use Order.CreateOrder and create an exit stoploss/profittarget?

      I only have seen examples with plain buy/sell orders (stop/limit), but nothing about exits.

      Thank you.

      Comment


        #4
        I have seen other users do it, but again its unsupported I don't have any examples or documentation on how to do it.

        -Brett
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        83 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        47 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        66 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X