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

EMA Indicator Problem

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

    EMA Indicator Problem

    Hello together,

    I have problems with the EMA indicator. When I use this indicator in the way "EMA(24)[0]" (I use a variable "stdEMAPeriod" for that) I get diverent values in MarketAnalyzer and StrategyAnalyzer for the same day when the "time Frame from" in StrategyAnalyzer is older then the "BarsRequired" (in my case 81). I used the stock CBK.DE for my tests.

    Here are some samples:
    MarketAnalyzer (06.03.2015 Quote data until 05.03.2015 EOD)
    + Time[0] {09.02.2015 17:30:00} System.DateTime
    CurrentBar 81 int
    EMA(stdEMAPeriod)[0] 11.031698723765169 double

    StrategyAnalyzer Data Start 01.10.2014
    + Time[0] {09.02.2015 17:30:00} System.DateTime
    CurrentBar 93 int
    EMA(stdEMAPeriod)[0] 11.032157561223869 double

    StrategyAnalyzer Data Start 03.10.2014
    + Time[0] {09.02.2015 17:30:00} System.DateTime
    CurrentBar 91 int
    EMA(stdEMAPeriod)[0] 11.031900273423824 double

    StrategyAnalyzer Data Start 17.10.2014
    + Time[0] {09.02.2015 17:30:00} System.DateTime
    CurrentBar 81 int
    EMA(stdEMAPeriod)[0] 11.031698723765169 double

    How can that be? I expect on a specific date of the stock the same value for "EMA(stdEMAPeriod)[0]" as long as I have enaugh bars to calculate it.

    Can please somebody verify it or tell me what I'm doing wrong?

    Thank's to all .
    Oliver
    Last edited by Icepick2011; 03-06-2015, 07:04 AM.

    #2
    Welcome to our forums Oliver, we have just replied to your direct note sent on this to support.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by nandhumca, Today, 03:41 PM
    0 responses
    4 views
    0 likes
    Last Post nandhumca  
    Started by The_Sec, Today, 03:37 PM
    0 responses
    3 views
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    6 responses
    33 views
    0 likes
    Last Post ScottWalsh  
    Started by frankthearm, Today, 09:08 AM
    10 responses
    36 views
    0 likes
    Last Post frankthearm  
    Working...
    X