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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X