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 habeebft, Today, 07:27 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_ChristopherS  
      Started by AveryFlynn, Today, 04:57 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Max238, Today, 01:28 AM
      4 responses
      37 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by r68cervera, Today, 05:29 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by geddyisodin, Today, 05:20 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X