Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

callback functions on orders execution

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

    callback functions on orders execution

    Hi,
    is there callback functions which might be called when enter orders are filled or when exit orders (stoploss or stopprofit) are triggered and/or filled? (having browsed the entire documentation, i guess the answer is no, but I ask anyway in case I would have missed sthg, or in case anyone would have the kindness of providing guidelines of what may be a workaround).

    Thanks in advance,
    B.

    #2
    This is not supported in the current production release (6.XXX) of NinjaTrader. This *will* be supported with our next major release (6.5) due out in production this fall.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thank you Ray,
      Ok, I'll wait til Fall then. If it's always that quick, i won't hesitate asking for more new features

      Seriously, I guess the workarounds involve dealing with class variables, Positions, avgPrice, MarketPosition and that sort of things, am I correct?

      Comment


        #4
        There are many things that need to be done internally to properly support this functionality withing the scope of the NinjaScript layer. Not too mention our ability to be able to provide technical support at this level.
        RayNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ray View Post
          There are many things that need to be done internally to properly support this functionality withing the scope of the NinjaScript layer. Not too mention our ability to be able to provide technical support at this level.
          Any news on that?

          Is it possible to get events for order update?

          Comment


            #6
            Ah, found the one:
            protected override void OnOrderUpdate(IOrder order)

            Comment


              #7
              you might be also interested in OnExecution, OnPositionUpdate

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              650 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              577 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X