Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Session Template

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

    Session Template

    Hello,
    I need help with setting session template. I use ticker YM with default setting for session template name "TempB".

    I have strategy which uses session template "TempB".

    Inside code of this strategy I call external indicator called IndicA and I need to make this indicator operate with "TempA" session template.

    Because YM has default session "TempB" it doesn't use "TempA" but uses default "TempB" is there way to override the session template name inside strategy code?

    #2
    Hello kujista,

    Thank you for your post.

    There is no method to set additional Session Templates in NinjaScript for any added bar series in the code. The additional bar series will use the Session Template of the primary bar series (the instrument selected for the strategy).

    Please let me know if you have any questions.

    Comment


      #3
      That's bad. Am I the only one who has problem with this? I consider it to be a problem. I use 3 TF for my strategy. Daily graph I analyze on TF1400mins and trend and entry I use on TF30 and 5min. I do not want premarket on TF60 and TF5 charts. this was the idea of handling with this.

      Comment


        #4
        Hello kujista,

        Thank you for your response.

        I will forward this as a suggestion to our development team for possible implementation in a future release of NinjaTrader.

        Comment


          #5
          Hello kujista,

          Thank you for your suggestion on how we can improve our product. It has been inserted into our tracking system with the unique ID # 957.

          I also wanted to include the following information when you are adding different instruments to your strategy -
          If a multi-series script adds an additional Bars object that already exists on the chart, the script will use the preexisting series instead of creating a new one to conserve memory. This includes that series' session template as applied from the chart. If the Bars object does not exist on the chart, the session template of the added Bars object will be the session template of the primary Bars object. If the primary Bars object is using the "<Use instrument settings>" session template then the additional Bars objects will use the default session templates as defined for their particular instruments in the Instrument Manager.
          - taken from our Help Guide under Multi-Time Frame & Instruments > True Event Drive OnBarUpdate() Method: http://www.ninjatrader.com/support/h...nstruments.htm

          Please let me know if I may be of further assistance.

          Comment


            #6
            Originally posted by kujista View Post
            That's bad. Am I the only one who has problem with this? I consider it to be a problem. I use 3 TF for my strategy. Daily graph I analyze on TF1400mins and trend and entry I use on TF30 and 5min. I do not want premarket on TF60 and TF5 charts. this was the idea of handling with this.
            Just make those templates the default templates for the instruments, and then use "Use instrument settings" for the chart session template.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            656 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            371 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
            579 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X