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 burtoninlondon, Today, 12:38 AM
        0 responses
        5 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        14 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X