Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateOnBarClose exemption

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

    CalculateOnBarClose exemption

    Is there a way to exempt a section from the CalculateOnBarClose override of the OnBarUpdate? I just want a small bit of code to operate on every tick.

    #2
    Just set the CalculateOnBarClose to false and then put all code to update on the close into
    Code:
     
    if (FirstTickOfBar)
    { 
    do the update on close stuff
    }
    Make sure to reference one bar back more, as you evaluate it on then opentick of the next bar.

    Code outside of this will be run on every tick then.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    601 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    347 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    559 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X