Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 frenkmly, Today, 04:49 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post frenkmly  
                  Started by ETFVoyageur, Yesterday, 07:05 PM
                  2 responses
                  18 views
                  0 likes
                  Last Post bltdavid  
                  Started by MGHORBEL, 05-06-2024, 06:41 AM
                  4 responses
                  22 views
                  0 likes
                  Last Post MGHORBEL  
                  Started by ChastiJose, Today, 03:37 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post ChastiJose  
                  Started by Klaus Hengher, Today, 03:13 AM
                  0 responses
                  11 views
                  0 likes
                  Last Post Klaus Hengher  
                  Working...
                  X