Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecution Ref Sample Not Working

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

    OnExecution Ref Sample Not Working

    Josh,
    The Sample for OnExcution and my own strategy code as well does not place stop and target orders (in Replay) because the "entryorder IORDER" object is always null when OnExecution is called, so that the code to place stops and targets is never executed.
    Not Sure how the OnExecution method would ever be helpful if the entryorder object is null when it is called. Is this just an issue with Replay?
    I am stuck here, any help would be greatly apprciated.

    Mark

    #2
    Will check it out.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks Ray

      This happens with OnOrderUpdate as well in Replay.

      BTW I test all my strategies using Replay so I can see how the orders move around in the trade, which you can't see when you just apply to a chart historically.

      I have a live system who's orders are not behaving properly that is why I am trying to get this to work and why I need the replay to do it.

      Thanks again........

      Mark

      Comment


        #4
        Just keeping you posted, we are investigating at the moment.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Josh, I am waiting for a solution, I'll keep checking back.

          Thanks again....

          Mark

          Comment


            #6
            Any update on this issue.

            I have a strategy that is live and trading real money. It is predicated on the OnOrderUpdate() and OnExecution() working properly.

            I have been trying to code a fix, but can't make progress because of the issues outlined in this thread.

            Thanks for your attention to this matter.....

            Mark

            Comment


              #7
              We're looking into that one and will report back shortly.

              Comment


                #8
                Guys,

                Any update on this issue?

                Thanks....

                Mark

                Comment


                  #9
                  Yep, the problem is an NT internal race condition which was exposed on market replay. This will be resolved by a fix available with next update (latest early June). Thanks for reporting that issue.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  558 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  324 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  545 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  547 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X