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 JohnS52, Today, 09:06 AM
    0 responses
    1 view
    0 likes
    Last Post JohnS52
    by JohnS52
     
    Started by Tidan2, Today, 05:11 AM
    2 responses
    16 views
    0 likes
    Last Post Tidan2
    by Tidan2
     
    Started by llanqui, Today, 08:48 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by wtykalsky, Today, 08:36 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by philmg, Today, 06:21 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Working...
    X