Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

is it possible to add the ''Trading hours'' to a strategy?

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

    is it possible to add the ''Trading hours'' to a strategy?

    is it possible to add the Session and Holidays section from the ''Trading hours'' to a strategy?

    I mean this section:Screenshot: http://prntscr.com/f55mzj

    I want to use it in my strategy. I tried to use in the data series the ''tradinghours'' section But then the hole day disappeared in my chart this will give an gap which disturb my indicators. Is their an option to implement this in the strategy?
    Last edited by MichaelAlexander; 05-08-2017, 12:23 AM.

    #2
    Hello MichaelAlexander,

    Thank you for writing in.

    Yes, you can pull in trading session and holidays defined in the template. Please see trading hours section of our helpguide.

    http://ninjatrader.com/support/helpG...adinghours.htm

    If you’d like to set a secondary data series to a specific template you could use any one of the three syntax found at the link below,
    https://ninjatrader.com/support/help...dataseries.htm

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for reply, I am not sure if I was completely clear. I want to implement the trading session and holidays in my strategy not in the chart.

      I want to select a template from the trading session in my strategy for example like this: http://prntscr.com/f5hp5p

      Is this possible to code? if so, where can i find it?

      Comment


        #4
        Hello MichaelAlexander,

        You could apply the strategy directly to the strategies tab in the control center which will give you the option to select a session template. This would be the same as applying the strategy to a chart which had the desired session templates applied.

        See strategies tab section of our helpguide,

        http://www.ninjatrader.com/support/h...egies_tab2.htm

        Or if you'd like to apply the strategy directly to a chart but have the strategy calculated off the primary data series but with a different session template applied, you would have to add a secondary data series with the desired template, then rewrite your logic to evaluate the secondary series. An example of having logic priced off a secondary series can be found in the SampleMultiTimeFrame strategy preloaded with NinjaTrader.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by muratb35, Today, 03:36 AM
        0 responses
        3 views
        0 likes
        Last Post muratb35  
        Started by fernlicht, Today, 02:16 AM
        1 response
        8 views
        0 likes
        Last Post NT-Roland  
        Started by fernlicht, 04-12-2021, 06:01 PM
        1 response
        28 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by memonolog, Today, 02:10 AM
        1 response
        4 views
        0 likes
        Last Post cincai
        by cincai
         
        Started by orenytz, Today, 12:25 AM
        0 responses
        8 views
        0 likes
        Last Post orenytz
        by orenytz
         
        Working...
        X