Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Force Chart to Specific Session and Timeframe

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

    Force Chart to Specific Session and Timeframe

    My strategy is only for Nymex Energy RTH on a 5 min timeframe.

    Is there a way to force the chart it is enabled on to change to these parameters using the strategy code?

    If possible can it also force the chart to plot executions?

    #2
    Hello casabella,

    Unfortunately, it is not possible to change the primary series itself (trading hours, bar type, interval or anything that would require reloading data).

    A time filter can be used to limit trades between specific hours. Below is a link to a reference sample in the help guide which demonstrates.


    As well as a public link to the Strategy Builder 301 which discusses this.



    Some properties can be changed, however not all properties are settable.
    The ChartBars has the PlotExecutions property.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by casabella View Post
      My strategy is only for Nymex Energy RTH on a 5 min timeframe.

      Is there a way to force the chart it is enabled on to change to these parameters using the strategy code?
      Best solution is probably to check the current session template in use and refuse to run if this session
      template is not the desired template.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X