Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders not closing End of Session

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

    Orders not closing End of Session

    I have open orders at the end of the session. Inclosed are some picture of the chart setting, and the order entry strategy. Whats the trick to making this work?
    Attached Files

    #2
    Please track your orders with TraceOrders = true and see if it encountered problems submitting the order. http://www.ninjatrader-support2.com/...ead.php?t=3627
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Trade LOG

      Originally posted by NinjaTrader_Josh View Post
      Please track your orders with TraceOrders = true and see if it encountered problems submitting the order. http://www.ninjatrader-support2.com/...ead.php?t=3627
      what do ya think?
      Attached Files

      Comment


        #4
        As evidenced by your logs no Exit on Close order was placed. Please try with the SampleMACrossOver strategy to see if you can get Exit on Close to place.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          The SampleMACrossover, did not close orders at end of session.. Ran it on two different PCs and did not close orders.

          The SampleMACrossover would not let me add the TraceOrders = true,, saying something about thats its a system strategy.

          Comment


            #6
            Hello,

            Can you post your log and trace files after running the sample strategy so we can verify?

            Try right clicking the code>Save as... and change the name. Then add TraceOrders = true.
            DenNinjaTrader Customer Service

            Comment


              #7
              trace and log

              Originally posted by NinjaTrader_Ben View Post
              Hello,

              Can you post your log and trace files after running the sample strategy so we can verify?

              Try right clicking the code>Save as... and change the name. Then add TraceOrders = true.
              trace and log
              Attached Files

              Comment


                #8
                Please post complete trace and logs along with timestamps of your latest version. Also, to please be using SampleMACrossOver and try on different instruments. Thank you.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  the current logs are two posts down

                  Comment


                    #10
                    gg80108,

                    It looks like you are backtesting. I am assuming you are doing it on the Strategy Analyzer. Please ensure you actually defined out the 9:30-4pm time frame in the strategy selection dialogue.

                    Please then try increasing the seconds till exit significantly. We are just trying to get a base case that works so we have somewhere to start.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Josh View Post
                      gg80108,

                      It looks like you are backtesting. I am assuming you are doing it on the Strategy Analyzer. Please ensure you actually defined out the 9:30-4pm time frame in the strategy selection dialogue.

                      Please then try increasing the seconds till exit significantly. We are just trying to get a base case that works so we have somewhere to start.
                      I was using the Market replay function to test, setting up the start and stop times in the Chart Properties.

                      Strategy Analyzer seems only to contain "Exit on close" but does not have the "Exit on close seconds" to change, in order handling..
                      I did move the session time back in Strategy Analyzer to create an open order at end of session and open orders were closed everytime, but I also set "Exit on close" to false and it still generated the "Exit on close" order. Strategy Analyzer just doesn't seem to be useful in this test.

                      Comment


                        #12
                        Not sure I follow. If you want Exit on Close you need to set it to true. At the very end of the backtest you will always get an Exit on Close order regardless of the setting too.

                        If you are running on replay please don't run it at 500x. Please slow it down or just set session times that will trigger an exit a few minutes into the replay and let it go at 1x.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_Josh View Post
                          Not sure I follow. If you want Exit on Close you need to set it to true. At the very end of the backtest you will always get an Exit on Close order regardless of the setting too.

                          If you are running on replay please don't run it at 500x. Please slow it down or just set session times that will trigger an exit a few minutes into the replay and let it go at 1x.
                          Maybe your Strategy Analyzer has "seconds to close" but mine doesn't .
                          Attached Files

                          Comment


                            #14
                            Backtesting would not have this since there is no "intrabar" handling.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Seems like we are not communicating anymore.. How can we reset this and get back on the same page?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              633 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              364 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              105 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              567 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              568 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X