Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator that starts everyday at the open price

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

    Indicator that starts everyday at the open price

    Hi

    I have a question, is it possible to restart for example the NT8 EMA everyday at the open price?
    Normally that kind of indicator starts on Sunday to Friday.

    When it is possible how can I do that?

    Thanks for any help,
    Michael

    #2
    Hello Michael,

    The EMA (and other moving average indicators) roll the information from the previous bar into the current bars calculations.

    You could choose to make a copy of the EMA and in the logic reset the Value[0] each time the Bars.IsFirstBarOfSession is true to either the CurrentDayOHL().CurrentOpen[0] or 0...

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi ChelseaB,

      Thank you for the information but unfortunately I coulden't get it work, its to big for me.
      Any chance you could me make the change on this indicator I did post, so I can see the difference and I can adjust it on the indicator I want these restart procedure.

      Thank you very much.
      Michael
      Attached Files

      Comment


        #4
        Hello Michael,

        Unfortunately, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. This is so that we can maintain a high level of service for all of our clients as well as our partners.

        You can contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.


        You would need custom logic for this.
        Basically, if the Bars.IsFirstBarOfSession is true, you could ignore the value from the prevous bar Value[1] and substitute Value[0] instead.
        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
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        345 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X