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 xiinteractive, 04-09-2024, 08:08 AM
          2 responses
          10 views
          0 likes
          Last Post xiinteractive  
          Started by Irukandji, Today, 09:34 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by RubenCazorla, Today, 09:07 AM
          1 response
          5 views
          0 likes
          Last Post RubenCazorla  
          Started by TraderBCL, Today, 04:38 AM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          11 responses
          1,423 views
          0 likes
          Last Post jculp
          by jculp
           
          Working...
          X