Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Sessions

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

    Strategy Sessions

    Hi:

    When starting Strategies, I have them set to stop entering new trades 30 min to session close and to exit all positions 1 min before the session close (for each particular instrument traded)...not the general flatten in Misc>Flatten...this is for each individual Strategy. I understand the Session close time is per each instrument in the instrument manager. However, the Strategies still do not close upon each instrument session close?

    Please let me know...thanks...

    #2
    Hello,

    It will be as per the session in the instrument manager if you're using "Use instrument settings" when starting your strategy or the session template you have on your chart if running from a chart.

    If you have specified a session template, such as the CME US Index Futures ETH session template, the strategy will work based on the close of this session, regardless off the instrument that is trading.

    When you say you have them set to stop entering new trades, have you done this using a Time Filter in the code?

    If the strategies are not closing when you expect, can you clarify what instruments you are running the strategy on and exactly what session template you're using?
    MatthewNinjaTrader Product Management

    Comment


      #3
      Originally posted by NinjaTrader_Matthew View Post
      Hello,

      It will be as per the session in the instrument manager if you're using "Use instrument settings" when starting your strategy or the session template you have on your chart if running from a chart.

      If you have specified a session template, such as the CME US Index Futures ETH session template, the strategy will work based on the close of this session, regardless off the instrument that is trading.

      When you say you have them set to stop entering new trades, have you done this using a Time Filter in the code?

      If the strategies are not closing when you expect, can you clarify what instruments you are running the strategy on and exactly what session template you're using?
      I have been assuming that I leave it on <Use Instrument Settings> and it would automatically pull the times for each individual instrument and apply. Is that wrong or correct? Or, does one actually have to choose one from the drop down menu in order for it to apply?

      Comment


        #4
        That would be correct - it will pull from the instrument settings in the instrument editor. Are you sure these are set to the session you expect them to be on?
        MatthewNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Matthew View Post
          That would be correct - it will pull from the instrument settings in the instrument editor. Are you sure these are set to the session you expect them to be on?
          I have not changed anything...when I click on the instruments in the instrument manager they are automatically set right? Or, should I select it from them dropdown menu that matches what is in the instrument manager?

          How can I know for sure?

          Comment


            #6
            It should pull whatever we had set in the database by default.

            If you want to be for sure, you can print the Bars.Session

            Print(Bars.Session.TemplateName);

            MatthewNinjaTrader Product Management

            Comment


              #7
              Originally posted by NinjaTrader_Matthew View Post
              It should pull whatever we had set in the database by default.

              If you want to be for sure, you can print the Bars.Session

              Print(Bars.Session.TemplateName);

              http://www.ninjatrader.com/support/h...t7/session.htm
              Matt, where does that print to? On the charts?

              Can you let me know what areas that would reflect?

              Comment


                #8
                That would print to the Tools--> Output window

                This will help you ensure that the "Use Instrument Settings" your strategy is using is what you expect.

                For example the ES should output: CME US Index Futures ETH
                MatthewNinjaTrader Product Management

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                649 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                370 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                109 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                574 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                576 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X