Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

On.....() method for StopLoss order

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

    On.....() method for StopLoss order

    Hi,

    Is there a public void On<something>() method for the SetStoploss method? I've tried catching all the messages from OnExecution(), OnPositionUpdate() etc but that doesnt give back messages when the SetStoploss() method is called. I would like to catch the system messages when I set the stoploss so I know the system has acknowledges my stoploss order and I get write it to a log-file.

    I've notice that once the Stoploss has been set, and is updated, then I get OnOrderUpdate() statements.. But I don't know how to receive anything when the Stoploss is first set right after the long/short entry.

    Thanks.
    Last edited by siroki; 03-29-2014, 03:47 AM.

    #2
    Originally posted by siroki View Post
    Hi,

    Is there a public void On<something>() method for the SetStoploss method? I've tried catching all the messages from OnExecution(), OnPositionUpdate() etc but that doesnt give back messages when the SetStoploss() method is called. I would like to catch the system messages when I set the stoploss so I know the system has acknowledges my stoploss order and I get write it to a log-file.

    I've notice that once the Stoploss has been set, and is updated, then I get OnOrderUpdate() statements.. But I don't know how to receive anything when the Stoploss is first set right after the long/short entry.

    Thanks.
    Turn TraceOrders on and examine the log (or Output Window).

    ref: http://www.ninjatrader.com/support/h...raceorders.htm

    Comment


      #3
      Thanks for your reply, but not entirely what I was looking for. Because TraceOrders doesn't allow me to catch the individual messages and handle them in my custom code.

      There should be an event handler for the SetStoploss right? At least, I would hope so.

      Comment


        #4
        Originally posted by siroki View Post
        Thanks for your reply, but not entirely what I was looking for. Because TraceOrders doesn't allow me to catch the individual messages and handle them in my custom code.

        There should be an event handler for the SetStoploss right? At least, I would hope so.
        Using TraceOrders will clearly tell you whether or not there is something that you can use to track whatever it is that you want to track, and give you an idea of what to trap, and with what event handler.

        IOW, because I do not use the method, I cannot tell you definitely one way or another, but, by using TraceOrders, you can find out that information for yourself.
        Last edited by koganam; 03-29-2014, 09:18 AM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        162 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        313 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X