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.



    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,


    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,



        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 MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Working...
        X