Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Last point on EMA calc

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

    Last point on EMA calc

    It seems that the last point on an EMA is not calculated, or the whole EMA is shifted back by one bar. The Displacement setting is set to 0. AM I missing something? see attached img.

    Attached Files

    #2
    Hello aelagha,

    Thank you for your post.

    In the indicator's properties, you can try changing the "Calculate" property to either "On Each Tick" or "On Price Change".

    Please do not hesitate to contact us for any other NinjaTrader inquiries you may have.

    Comment


      #3
      Thanks Shawn. That works, but why "On Bar Close" does not? This is EOD data and the bar is closed.

      Thanks

      Comment


        #4
        Hello aelagha,

        Thank you for your reply.

        Are you using EOD data only? If so, are you using the Kinetick EOD feed or a different provider?

        What is your local time zone?

        What 'Trading Hours' template is applied to the chart?

        Comment


          #5
          I am using the free Kinetick EOD feed. Local time is is Eastern and Trading hours template is 24x5. This is for a symbol I created on the TSX, but I also tried some o the already defined symbols, and see the same thing. Thanks

          Comment


            #6
            Hello aelagha,

            Thank you for your reply.

            It would be expected that if the indicator was set to On Bar Close, the indicator would not yet calculate a value for today's bar and be a bar behind because today's bar has not yet closed.

            Comment


              #7
              This makes sense if NT considers the current bar is closed on the opening of the next bar since the current session has closed and the current bar has closed. Is this the case? It is fine this way, I just need to confirm if this is the case so I can adapt accordingly.

              Thanks

              Comment


                #8
                Hello aelagha,

                Thank you for your reply.

                That assessment is correct. The bar would not be closed until the next bar has begun.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                39 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                124 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                64 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                41 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X