Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range Bars

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

    Range Bars

    Hi,

    Even though I have as a session template the forex, the range bar chart starts every day at 9:00 in the morning.

    What can I do to see the whole day? I am with the EURUSD

    Thanks

    #2
    BTW, I am having a lot of problems with the range charts.

    Right now is the only alternative I have available if I do not want my back test to have a 1 min bar delay.

    Please, try to visualize the SampleBreakOut Strategy in a 4 Range chart of the EURUSD. As most of my strategyes no trade is made in those charts.

    Any idea to solve this?

    Comment


      #3
      CJS, the range bar count is reset each day - if you want to visualize different session hours you would need to assign another template or create one to your liking under Tools > Session Manager.

      Comment


        #4
        I don´t understand what you mean. If I set 24/7 as a Session Template, shouldn't I see a 24 hours chart?.

        In the Session Manager, the session template "Forex" is set from 17:00 Sunday to 17:00 Friday. I set this template as a template for my 4 range chart. And for example, today the first 4 pip bar starts at 9:30.

        Any other clue?

        Comment


          #5
          Correct 24 / 7 would show all data, basically replicating 6.5's default setup - have you tried a reload of your historical data already with a right click on the chart?

          What provider are you connecting to for the data?

          Thanks

          Comment


            #6
            The free Gain conexion.

            Comment


              #7
              Hello,

              Just to recap here. When you set the session template to Default 24/7 you say you are not getting a 24 hour chart?

              Can you also let me know what your historical data source is.

              Please confirm you have historical data enabled with the steps I have provided below.
              • Disconnect
              • Tools
              • Account Connections
              • Select your connection
              • Change
              • Next
              • Historical Data (Please let me know what this is set too, should be NinjaTrader data)
              • Next
              • Next Finish
              • Reconnect


              I look forward to assisting you further.
              BrettNinjaTrader Product Management

              Comment


                #8
                Yes, the Historial Data is set to:

                - Use NT Servers

                And the Session Template is set to 24/7 deffault.

                I have just checked this in NT6.5 and there is not the problem.

                Unfortunatelly, my strategies are coded with the Unmanaged Approach, so I can´t back test them with the 6.5

                I can´t figure out which is causing this.

                Thanks for the assistance.

                Comment


                  #9
                  CJS, can you please check into the Historical Data Manager to see what data range is present there?

                  You can also try running with a cleared cache - MyDocuments\NinjaTrader 7\db\cache (please delete simply the subfolders with NT closed down).

                  Comment


                    #10
                    Hi Bertrand,

                    You found the problem!!.

                    From de Historical D.M. I have figuered out that I have tick data, but the tick data is some days uncomplete. Some days the tick data stored starts ts at 9:00.

                    What I have to do is import complete tick data for the EUR.

                    Thanks alot for your help!!

                    Comment


                      #11
                      Hi,

                      I have the next problem when back testing strategies with the Range bars.

                      Since my strategies use many fixed times, with range bars ths statements within the conditions get ignored.

                      For example;

                      if (ToTime(Time[0])==ToTime(07,00,00))
                      {
                      referenciaprecio = Open[0];
                      referenciabox =Math.Round(referenciaprecio,3);
                      }

                      My variable "referenciaprecio" never gets the value I want cose the condition is never true.

                      Any idea to solve this?

                      Thanks

                      Comment


                        #12
                        How could I get as a reference the first bar after 07:00?

                        One option could be set 07:00:00 as the beginning of the session and use the FirstBarOfSession condition?

                        Any better idea?

                        Thanks

                        Comment


                          #13
                          Hello CJS,

                          You can use GetBar() to get the bars ago value for a specific date time. This sample can help with this:
                          Getting indicator values from a specified time
                          Ryan M.NinjaTrader Customer Service

                          Comment


                            #14
                            Hi,

                            I am not sure this is gonna work. The GetBar function seems to be useful to set as a reference some Input from a past bar. I am interested in the current time.

                            For example, I want to sent 2 stop orders (1 above & 1 below the current price) exactly at 07 o'clock. If right now is 7,0,0 place those orders.

                            Any other idea to make it possible in the context of a range chart?

                            Thanks again

                            Comment


                              #15
                              CJS, if you work with Range bars you're accessing the historical time stamps of the bars with the Time / ToTime methods - http://www.ninjatrader-support.com/H...V6/ToTime.html

                              However this will not be exact, since Range bars are not time based and thus you're not guaranteed to see a timestamp of 7:00 to trigger the conditions. For realtime trading you could simply check against DateTime.Now, the current PC clock.

                              For historical testing, you could add a time based series, for example a minute chart and then check it's time with Times to trigger your trades -

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              578 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              334 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
                              553 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              551 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X