Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

different values for same ema indicator

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

    different values for same ema indicator

    i am having following problem
    every time i change the number of days to load in data series,i get different values for my ema indicator.
    like if my dataseries has 250 days,then 200 day ema for fdax is 6466
    if my dataseries has 400 days,then 200 day ema for fdax is 6402
    if my dataseries has 500 days,then 200 day ema for fdax is 6385
    so,how to decide which value is correct and what is the right dataseries length.
    in my ema indicator ,i have the maximum number of bars to look back set at default 256.
    would somebody look at this issue please.
    thank you.

    #2
    Hello easyfying,

    This is how the EMA is calculated. It uses its prior values in its calculations. More bars will mean it starts out at different prices and this changes the values for the future.

    You may prefer using Simple Moving Average if you don't want prior values to affect the most recent 200 bar calculation.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by funk10101, Today, 09:43 PM
    0 responses
    6 views
    0 likes
    Last Post funk10101  
    Started by pkefal, 04-11-2024, 07:39 AM
    11 responses
    37 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    8 responses
    44 views
    0 likes
    Last Post bill2023  
    Started by yertle, Today, 08:38 AM
    6 responses
    26 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    24 views
    0 likes
    Last Post algospoke  
    Working...
    X