Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Firsttick of bar

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

    Firsttick of bar

    I am using timer function inside the update properties so i am not capturing this statement, so my if else is not working, how else can i check this is a the first call on a new bar?

    Tinkerz

    #2
    Tinkerz,

    When you are in OnBarUpdate() with CalculateOnBarClose = false, the first tick of a bar will always have FirstTickOfBar == true. If you are using your own timer and if your timer event does not land exactly on that first tick then unfortunately it will be false. All you need to look for is in OnBarUpdate() and just waiting for that first tick.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      OK thanks, I need to control the updates as every tick processing will be too much and onbar close to slow

      will have to find a way round it

      looks like currentbar will have to do

      thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      24 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
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X