• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.

    http://www.ninjatrader.com/support/h...historical.htm
    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.

        http://www.ninjatrader.com/support/h...rofsession.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by elliot5, Today, 04:20 AM
        0 responses
        1 view
        0 likes
        Last Post elliot5
        by elliot5
         
        Started by trakslfwe, Today, 04:17 AM
        0 responses
        1 view
        0 likes
        Last Post trakslfwe  
        Started by aviat72, Today, 12:41 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by _Zero_, 01-06-2020, 01:16 PM
        2 responses
        77 views
        2 likes
        Last Post CiprianV  
        Started by RuthB, 05-29-2020, 09:41 PM
        3 responses
        33 views
        0 likes
        Last Post aviat72
        by aviat72
         
        Working...
        X