Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access to session templates

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

    Access to session templates

    Hi,

    I'd like to be able to use session templates as properties in indicators, independantly of the current chart session template.

    Is there any way to access all the session templates from code ?

    Thanks

    #2
    gomifromparis,

    I am not sure how that will work. You only load data for the bars on the chart. If you tried to run an indicator on a different template outside the original's range it still has no bars there so can't process there.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Well for instance if you choose a 1000V chart on the ES with a 24/5 session template, you might want to plot a certain indicator only during RTH, or the indicator might use values only during RTH.

      So you could set the RTH session as a parameter to the indicator so it wouldn't plot all values on the 24/5 chart

      Comment


        #4
        You should be able to do this via a time filter in the code I believe.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Of course. But to define your filter to need a begin time, an end time and a time zone... Maybe you could make a different filter for days of the week... So basically you need a session template... That's why I thought it would be cool to be able to access the session templates from the code.

          Originally posted by NinjaTrader_Josh View Post
          You should be able to do this via a time filter in the code I believe.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ageeholdings, Today, 07:43 AM
          0 responses
          7 views
          0 likes
          Last Post ageeholdings  
          Started by pibrew, Today, 06:37 AM
          0 responses
          4 views
          0 likes
          Last Post pibrew
          by pibrew
           
          Started by rbeckmann05, Yesterday, 06:48 PM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          12 views
          0 likes
          Last Post burtoninlondon  
          Working...
          X