Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time EMA not working

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

    Multi Time EMA not working

    Hello

    I'm using a 15 minute chart with 1 min, 60 min and 240 min as [1], [2], & [3] respectively

    I can then overlay a correct EMA(BarsArray[2],100)[0] for the 60 min

    BUT for the 240 min the following puts the level for the 100 EMA about 600 pips above where it should be:-

    EMA(BarsArray[3],100)[0] - The same also happens if I make it 120 min instead of 240 min.

    what is the problem please?

    #2
    Please ensure you have enough bars for a stable calculation on the longer time frames. Generally takes about 20 bars per series.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks I think that may have been the issue, but I have another query.

      On the GBPUSD the 100 EMA is showing at 1.4306 whereas the 100 EMA on my updata system is showing at 1.4362. I have noticed that there is always a large difference between the two systems. What is the explanation for this, are there any parameters that could be different as the 100 EMA from Updata is far more useful than the one on Ninja? Any help appreciated.

      Thanks

      Comment


        #4
        EMA from NinjaTrader is calculated based off of whatever is on the chart. It runs through each bar to determine its calculations. I do not know what Updata does.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I can't see that they would be any different but I'll ask, does the ema have any specific calculation settings that could be different, i.e can you tell me how ninja calculates the ema?

          Comment


            #6
            You can view the complete algorithm used by NinjaTrader by opening up the EMA indicator in the NinjaScript Editor. We follow the generally accepted approach as outlined here: http://tadoc.org/indicator/EMA.htm
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Thanks, that may well help.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              630 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              364 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              566 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              568 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X