Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RTH High Low Open and GLOBEX High Low Open

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

    #31
    Hello AdeptistJune,
    Thank you for the post.

    This is Thomas from the NinjaTrader Ecosystem responding on behalf of my colleague Chelsea.

    You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more!

    https://ninjatraderecosystem.com/sea...mming-services

    Educators - https://ninjatraderecosystem.com/sea...ures=education
    You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third party services for NinjaTrader all pricing and support information will need to be obtained through the consultant.

    This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Please let me know if you have any questions, concerns or if I can provide any further assistance by responding to this thread at your convenience.
    Thomas C.NinjaTrader Customer Service

    Comment


      #32
      Hello,

      Here is the output.
      Attached Files

      Comment


        #33
        Hello AdeptistJune,

        Thank you for your reply.

        This output is not helpful as we do not know the code generating the print and it appears to not be printing what I would expect to see, whatever the code used.

        Could you supply a code sample showing the print statement you're using?

        Thanks in advance; I look forward to assisting you further.

        Comment


          #34
          protected override void OnBarUpdate()
          {
          if(BarsInProgress == 1 )
          {
          //Print(string.Format("{0} | BarsInProgress: {1} | CurrentBars: {2}", Time[0], BarsInProgress, CurrentBars));

          if (CurrentBars[1] < 1)
          return;

          Print(string.Format("{0} | BarsInProgress: {1} | CurrentBars: {2}", Time[0], BarsInProgress, CurrentBars));

          Value[0] = CurrentDayOHL1.CurrentOpen[0];
          }

          Comment


            #35
            Hello AdeptistJune,

            Thank you for your reply.

            Two things I would note here.

            First, you're printing the value of CurrentBars which is an array of CurrentBar. Use the singular CurrentBar to get the bar number. Secondly, it looks like you're trying to assign a plot value on the secondary series, which should be avoided - plots will be synced to the primary series and you should be assigning values when that series is iterating through OnBarUpdate. Please see below:

            Code:
            protected override void OnBarUpdate()
            {
            if(BarsInProgress == 1 )
            {
            //Print(string.Format("{0} | BarsInProgress: {1} | CurrentBars: {2}", Time[0], BarsInProgress, CurrentBars));
            
            if (CurrentBars[1] < 1)
            return;
            
            Print(string.Format("{0} | BarsInProgress: {1} | CurrentBars: {2}", Time[0], BarsInProgress, CurrentBar));
            
            }
            if(BarsInProgress == 0)
            {
            Value[0] = CurrentDayOHL1.CurrentOpen[0];
            }
            }
            Please let us know if we may be of further assistance to you.

            Comment


              #36
              Hello, I added a secondary data series to plot the RTH open. If I don't use BarsInProcess == 1, it will not plot

              Comment


                #37
                Hello AdeptistJune,

                Thank you for your reply.

                Can you share what you've got for the secondary data series? if you're calculating the CurrentDayOHL from that secondary series you can still assign the values to the plot on the primary.

                Thanks in advance; I look forward to assisting you further.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                571 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                331 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                549 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                550 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X