Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trading Hours Template for Night Session Only

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

    Trading Hours Template for Night Session Only

    I was trying to create a Trading Hours Template for the ES Night Session Only. That would be form 5:00 PM (Centrtral Time) to 8:30 AM (Central Time) the next morning.

    Click image for larger version

Name:	NT Support Trading Hours Template.png
Views:	146
Size:	86.1 KB
ID:	1340881



    So, 5:00 PM to 8:30 AM is 15.5 hours or 930 minutes


    Click image for larger version

Name:	NT Support Trading Hours Template 2.png
Views:	125
Size:	37.4 KB
ID:	1340882


    It is currently 10:00 AM and the last bar on the chart is still building?

    Where did I go wrong?

    Thanks.

    #2
    Hello TAJTrades,

    What is the bar time of the last bar on the chart?

    What is your time zone?

    If you reload all historical data on the chart, does this correct the chart?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      The Data Box is showing 16:00:00 for the last bar on the chart. The Price is still updating.

      Comment


        #4
        Hello TAJTrades,

        I tested on my end and was able to reproduce.

        This looks like you've discovered a bug in my opinion and I am reporting this to our development team.

        Thank you for reporting the issue. Your reports help us build a better product!

        As new releases of NinjaTrader become available, please check the release notes for a description of this issue as the ID could change.
        Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

        Once listed, please update, then test to ensure the behavior is resolved.

        Also, please let us know of any other behavior you find that you feel is incorrect.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Does that mean I get a reward for Bug Discovery? You can email me a case of beer!!!!

          Any idea as to the timeframe for the next release?

          Comment


            #6
            Hello TAJTrades,

            That'd be good time for sure.

            Unfortunately, we cannot provide estimates of release dates.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Update:

              The Trading Hours Template is working as expected today. I loaded 14 days of data. I am lost and confused.

              Maybe check on your side.

              Comment


                #8
                Working with this Trading Hours Template this morning (7:00 am EST) and I noticed something odd. The Numbers on the Chart are Bar Time Stamp using:

                PHP Code:
                        protected override void OnBarUpdate()
                        {
                            StringBuilder sb = new StringBuilder();
                                 //    Bar time Stamp Hour
                                sb.Append(Time[0].Hour.ToString());
                                sb.Append(":");
                                //    Bar time Stamp Minute
                                sb.Append(Time[0].Minute.ToString()); //    Bar time Stamp Minute
                            
                            Draw.Text(this, "Time " + CurrentBar.ToString(), sb.ToString(), 0, Low[0] - (Low[0] * .01)  );
                        }​ 
                
                Notice the odd one?

                Click image for larger version

Name:	NT Support Trading Hours Template 4.png
Views:	102
Size:	64.7 KB
ID:	1341143



                I am thinking this has more to do with the data feed not triggering some type of marker and not so much the Trading Hours internal code.

                Hope this helps.

                Attached Files

                Comment


                  #9
                  Hello TAJTrades,

                  If the bar is the April 18th bar, this may be different due to the holiday Good Friday.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    The bar in question has a date of 4/17/2025 according to the Data Box. But you may be right. will look into it later.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Today, 05:17 AM
                    0 responses
                    22 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    120 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    63 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    41 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    45 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X