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 RDTrader16, Today, 10:19 PM
      0 responses
      2 views
      0 likes
      Last Post RDTrader16  
      Started by gemify, 03-08-2023, 08:02 AM
      9 responses
      148 views
      0 likes
      Last Post culpepper  
      Started by elirion, Today, 10:03 PM
      0 responses
      1 view
      0 likes
      Last Post elirion
      by elirion
       
      Started by RaddiFX, Today, 09:55 PM
      0 responses
      6 views
      0 likes
      Last Post RaddiFX
      by RaddiFX
       
      Started by Trader146, 03-29-2024, 01:22 PM
      4 responses
      25 views
      0 likes
      Last Post Trader146  
      Working...
      X