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 kulwinder73, Today, 10:31 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by RookieTrader, Today, 09:37 AM
          3 responses
          15 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by terofs, Yesterday, 04:18 PM
          1 response
          24 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by CommonWhale, Today, 09:55 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Gerik, Today, 09:40 AM
          2 responses
          8 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Working...
          X