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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              87 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              47 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              66 views
              2 likes
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              69 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              58 views
              0 likes
              Last Post CarlTrading  
              Working...
              X