Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Aviram Y, Today, 05:29 AM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by bmartz, 03-12-2024, 06:12 AM
    3 responses
    30 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X