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 DJ888, Today, 10:57 PM
        0 responses
        1 view
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X