Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

indicator returns wrong values during historical test
 Post subject: indicator returns wrong values during historical test Post rating: 0   New post Posted: Fri 10 May, 2013, 20:54 

User rating: 0
Joined: Tue 09 Apr, 2013, 20:54
Posts: 3
Hi,

I'm writing a strategy that uses ema(350) and ema(25) indicators. Both return wrong values when compared to the ema indicators displayed on the chart. I'm using Dukascopy ver. 2.24.19 and JForex ver. 2.7.9.5. It seems like the historical tester is not considering the data before the test when calculating indicator values.


 
 Post subject: Re: indicator returns wrong values during historical test Post rating: 0   New post Posted: Mon 13 May, 2013, 07:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Indicator_usage_checklist


 
 Post subject: Re: indicator returns wrong values during historical test Post rating: 0   New post Posted: Mon 13 May, 2013, 14:40 

User rating: 0
Joined: Tue 09 Apr, 2013, 20:54
Posts: 3
Thanks for your answer.

I would like to filter out the weekend flats. Is there a way to tell the IIndicators interface that it should filter out weekend flats. I've found the enum Filter. However, I'm not sure how to tell my strategy to filter out weekend flats. Is there any other way besides writing a custom Indicator myself?

Edit: Nevermind, I've found a method where a filter can be applied.

It's actually a bit embarassing asking these silly questions. :lol:


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com