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

Cancelled order due to end of session handling

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

    #31
    Hatori,

    Sorry I did not quite understand what you mean. If you have no more data then you will not be able to cancel as nothing is trading. This would be expected.
    Josh P.NinjaTrader Customer Service

    Comment


      #32
      I try to rephrase my previous post:

      We have two different instrument in the strategy.
      The primary instrument traded normally until session end.(24:00)
      but the secondary instrument had no new tick that day from 20:00 ( close to expiration) , and that caused that the primary instrument stop/target cancelled with ''Cancelled order due to end of session handling' message.

      Comment


        #33
        hatori,

        I guess I still don't quite follow. Can you please provide the TraceOrders = true output along with trace/logs so we can see the sequence of events? Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #34
          You can reproduce the bug with the included files.

          Import EStemp and TFtemp historical data and run the SessionCancelError strategy on the 5 min EStemp chart.
          You will see that the stop/target canceled on the primary instrument at 20:00 because of the secondary bar session end.

          Regards,
          Hatori.
          Attached Files

          Comment


            #35
            hatori, thanks for providing - we'll try reproducing here.
            BertrandNinjaTrader Customer Service

            Comment


              #36
              hatori, I'm seeing the same on my end - we check into matters.
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Stanfillirenfro, Today, 07:23 AM
              1 response
              2 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by cmtjoancolmenero, Yesterday, 03:58 PM
              2 responses
              20 views
              0 likes
              Last Post cmtjoancolmenero  
              Started by olisav57, Yesterday, 07:39 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by cocoescala, 10-12-2018, 11:02 PM
              7 responses
              943 views
              0 likes
              Last Post Jquiroz1975  
              Started by oviejo, Today, 12:28 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X