Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Past session Indicator values reset

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

    Past session Indicator values reset

    I would like the strategy to reset past session indicator values, such that they are calculated from the beginning of the current session? is this possible?

    #2
    Hi epcompany, there would not be prebuilt method for this task unfortunately but you would need to ensure to skip historical OnBarUpdate() calls for any bar not in the current session, if you start your script before the session break and run for example the RTH / cash hours sessions then working with Historical should work as well.

    Comment


      #3
      Unfortunately, this means that I would have to run the chart one day at a time in replay.
      I'm looking for a way to tell an indicator to re-initialize itself, such that it can start recalculating from the current bar?

      Comment


        #4
        Originally posted by epcompany View Post
        I would like the strategy to reset past session indicator values, such that they are calculated from the beginning of the current session? is this possible?
        Just reset all your values using FirstBarOfSession as your filter/trigger.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        27 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        27 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-25-2026, 09:53 PM
        0 responses
        31 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 03-25-2026, 09:51 PM
        0 responses
        18 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 03-23-2026, 11:13 AM
        0 responses
        30 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X