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 Christopher_R, Today, 12:29 AM
          0 responses
          7 views
          0 likes
          Last Post Christopher_R  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          166 responses
          2,235 views
          0 likes
          Last Post sidlercom80  
          Started by thread, Yesterday, 11:58 PM
          0 responses
          3 views
          0 likes
          Last Post thread
          by thread
           
          Started by jclose, Yesterday, 09:37 PM
          0 responses
          7 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,415 views
          0 likes
          Last Post Traderontheroad  
          Working...
          X