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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        627 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        359 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        562 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        567 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X