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.

    BertrandNinjaTrader Customer Service

    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 usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        603 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        23 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        22 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Working...
        X