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 Jonker, Today, 01:19 PM
        0 responses
        1 view
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by futtrader, Today, 01:16 PM
        0 responses
        5 views
        0 likes
        Last Post futtrader  
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,791 views
        0 likes
        Last Post aligator  
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        844 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,296 views
        1 like
        Last Post jgualdronc  
        Working...
        X