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

    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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,281 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        19 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Tim-c, Today, 02:10 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        5 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        53 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Working...
        X