Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FirstTickOfBar

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

    FirstTickOfBar

    is FirstTickOfBar returning always true?

    #2
    PrTester,

    It should return true only on that first tick of the bar. It would make the most sense to use this property only if you are running with CalculateOnBarClose = false. Are you experiencing differently?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      PrTester,

      It should return true only on that first tick of the bar. It would make the most sense to use this property only if you are running with CalculateOnBarClose = false. Are you experiencing differently?
      Yes, But its returning true on ALL ticks

      Comment


        #4
        Can you please provide a simple as possible test sample. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          Can you please provide a simple as possible test sample. Thank you.
          Print(FirstTickOfBar);

          Comment


            #6
            Are you talking about real-time or historical bar processings?
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Are you talking about real-time or historical bar processings?
              it' Real Time

              Comment


                #8
                PrTester,

                I am not seeing what you are seeing.

                I am printing Time[0], CurrentBar, and FirstTickOfBar.

                12/16/2009 12:27:00 PM 1571 True
                12/16/2009 12:28:00 PM 1572 True
                12/16/2009 12:29:00 PM 1573 True
                12/16/2009 12:30:00 PM 1574 True
                12/16/2009 12:31:00 PM 1575 True
                12/16/2009 12:32:00 PM 1576 True
                12/16/2009 12:33:00 PM 1577 True
                12/16/2009 12:34:00 PM 1578 True
                12/16/2009 12:35:00 PM 1579 True
                12/16/2009 12:35:00 PM 1579 False <-- Switched to real-time right here
                12/16/2009 12:35:00 PM 1579 False
                12/16/2009 12:35:00 PM 1579 False
                12/16/2009 12:35:00 PM 1579 False
                12/16/2009 12:35:00 PM 1579 False
                12/16/2009 12:35:00 PM 1579 False
                12/16/2009 12:35:00 PM 1579 False
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_Josh View Post
                  PrTester,

                  I am not seeing what you are seeing.

                  I am printing Time[0], CurrentBar, and FirstTickOfBar.

                  12/16/2009 12:27:00 PM 1571 True
                  12/16/2009 12:28:00 PM 1572 True
                  12/16/2009 12:29:00 PM 1573 True
                  12/16/2009 12:30:00 PM 1574 True
                  12/16/2009 12:31:00 PM 1575 True
                  12/16/2009 12:32:00 PM 1576 True
                  12/16/2009 12:33:00 PM 1577 True
                  12/16/2009 12:34:00 PM 1578 True
                  12/16/2009 12:35:00 PM 1579 True
                  12/16/2009 12:35:00 PM 1579 False <-- Switched to real-time right here
                  12/16/2009 12:35:00 PM 1579 False
                  12/16/2009 12:35:00 PM 1579 False
                  12/16/2009 12:35:00 PM 1579 False
                  12/16/2009 12:35:00 PM 1579 False
                  12/16/2009 12:35:00 PM 1579 False
                  12/16/2009 12:35:00 PM 1579 False
                  Mine was in a Custom Bar type I will investigate more and let you know, thanks for the test

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  607 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  353 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  560 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  561 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X