Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Multi-timeframe Series Break at EOD

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

    Multi-timeframe Series Break at EOD

    Hi everyone

    I have a strategy employing a number of different data series. It's important to me that the main data series (BarsArray[0]) has Break at EOD set to false.

    However, I would like to Add a Range series in the Strategy in which I have Break at EOD set to true.

    Is it possible to do this?

    Thanks!

    #2
    Hello janseun,

    Thanks for your post.

    In NinjaTrader8 you can add a data series that has a bool to set isResetOnNewTradingDay to true. Please see: https://ninjatrader.com/support/help...dataseries.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Paul

      Thanks for the reply. Do you maybe have an example that I can look at? I did notice this in the Help Guide, but when called with that bool, it also expects to be passed a BarsPeriod object which I don't think I fully grasp.

      Appreciate your help.

      Comment


        #4
        Hello janseun,

        Thanks for you reply.

        Here is an example:

        AddDataSeries("CL 02-18", new BarsPeriod(){BarsPeriodType = BarsPeriodType.Range, Value = 4}, "Nymex Metals - Energy ETH", false);
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thanks Paul - that did the trick - appreciate the help!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jpapa, Today, 07:22 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by kevinenergy, 02-17-2023, 12:42 PM
          116 responses
          2,758 views
          1 like
          Last Post kevinenergy  
          Started by franatas, 12-04-2023, 03:43 AM
          7 responses
          106 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Jltarrau, Today, 05:57 AM
          3 responses
          9 views
          0 likes
          Last Post Jltarrau  
          Started by f.saeidi, Today, 05:56 AM
          2 responses
          8 views
          0 likes
          Last Post NinjaTrader_Erick  
          Working...
          X