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.

How to reconcile ATR called from strategy & from indicator ?
 Post subject: How to reconcile ATR called from strategy & from indicator ? Post rating: 0   New post Posted: Sun 01 May, 2011, 12:45 

User rating: 0
Joined: Sun 30 Jan, 2011, 11:43
Posts: 6
Hi,

More generally the values of indicators are different when I use them in Strategies and when I use them in other indicators.

Attached is a TestStrategy that directly calls the ATR indicator, and then compares it to the same ATR call returned by a custom indicator.

Surprisingly, the two values generally differ. How can I reconcile them ?

Otherwise, how can I check that an indicator behaves in a strategy the same way it behaves on the graph ?

Many thanks.


Attachments:
TestStrategy.java [2.92 KiB]
Downloaded 356 times
ATRIndicator.java [3.23 KiB]
Downloaded 346 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: How to reconcile ATR called from strategy & from indicat Post rating: 0   New post Posted: Mon 09 May, 2011, 09:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Could you please reattach the indicator and strategy files, the initial attachments don't seem to exist anymore.


 

Jump to:  

cron
  © 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