Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reset an Indicator for start of Session

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

    Reset an Indicator for start of Session

    Hello - is there a way to reset an Indicator so that it is at zero at the start of the session? That is what the VWAP does. I would like to do this with a MACD or an RGaussian Filter. I can't find anything through Search.The Sample Trade Limiter link has code for resetting a tradeCounter for a Strategy. I don't see how to apply this to an indicator. Thank you for any help you can give.

    #2
    Hello JohnS52,

    This would need to be custom coded logic.

    Below is a link to an example that uses Bars.FirstBarOfSession.
    Hello, I've updated the DailyLossLimit and DailyLosLimitMultiTrade examples that were posted on the forum for NinjaTrader 7 for NinjaTrader 8. These are often requested and I felt they are good examples to have for NT8. DailyLossLimitExample_NT7 - http://ninjatrader.com/support/forum...241#post451241 (http://ninjatrader
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    637 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X