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 algospoke, Yesterday, 06:40 PM
      2 responses
      19 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      45 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      21 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      181 views
      0 likes
      Last Post jeronymite  
      Working...
      X