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 bmartz, 03-12-2024, 06:12 AM
          4 responses
          31 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by Aviram Y, Today, 05:29 AM
          4 responses
          11 views
          0 likes
          Last Post Aviram Y  
          Started by algospoke, 04-17-2024, 06:40 PM
          3 responses
          28 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by gentlebenthebear, Today, 01:30 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by cls71, Today, 04:45 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X