|
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.
AC indicator used in strategy different from graph |
[ellipsoid]
|
Post subject: AC indicator used in strategy different from graph |
Post rating: 0
|
Posted: Wed 10 Nov, 2010, 18:32
|
|
User rating: 0
Joined: Wed 10 Nov, 2010, 17:35 Posts: 3
|
This is either a bug, or I am not using the AC indicator method properly. Can someone help? double[] ac1= indicators.ac(instrument, strategyPeriod, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 5, 34 ,1); When I compare the values returned from "ac" they are very different from what shows on the chart for the same parameters. The attached strategy demonstrates this. If I use the "awesome" indicator instead, the values agree with the chart. Using the TestStrategy attached in "Visual Mode" will show the problem visually if you attach the ac indicator. Thanks
Attachments: |
File comment: AC indicator test strategy
TestStrategy.java [4 KiB]
Downloaded 379 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.
|
|
|
|
|
 |
API Support
|
Post subject: Re: AC indicator used in strategy different from graph |
Post rating: 0
|
Posted: Fri 12 Nov, 2010, 16:52
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, In your strategy you use close price parameter for the AC indicator, please check if you use the same price in the graph.
|
|
|
|
 |
[ellipsoid]
|
Post subject: Re: AC indicator used in strategy different from graph |
Post rating: 0
|
Posted: Fri 12 Nov, 2010, 17:24
|
|
User rating: 0
Joined: Wed 10 Nov, 2010, 17:35 Posts: 3
|
Support wrote: Hi, In your strategy you use close price parameter for the AC indicator, please check if you use the same price in the graph. Yes, I did select close price in the graph. Cheers!
|
|
|
|
 |
API Support
|
Post subject: Re: AC indicator used in strategy different from graph |
Post rating: 0
|
Posted: Mon 15 Nov, 2010, 10:57
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We have double checked your code, and AC indicator value in the API match with the graph value. Please check the chart options in the Tools -> Preferences that filters in disabled, also be sure that you check the same time period in the chart and in the API, then run your strategy and compare strategy output with the last finished bar value in the AC indicator sub window values (Positive, Negative)
Please do not hesitate to contact us if you require any further information.
|
|
|
|
 |
[ellipsoid]
|
Post subject: Re: AC indicator used in strategy different from graph |
Post rating: 0
|
Posted: Mon 15 Nov, 2010, 14:13
|
|
User rating: 0
Joined: Wed 10 Nov, 2010, 17:35 Posts: 3
|
Support wrote: We have double checked your code, and AC indicator value in the API match with the graph value. Thanks for looking into this. I'm sorry, but I still can not get the AC results to match and I'm pretty sure I am comparing like for like. I've attached a few screen shots (using the historical tester in visual mode) that show the Awesome indicator matching, but the AC indicator not matching. Maybe you could take a look and see if you can spot what I am doing wrong? Cheers! Ian
Attachments: |
File comment: Screen shots of Awesome and AC test
dukas_01.pdf [507.1 KiB]
Downloaded 484 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.
|
|
|
|
|
 |
API Support
|
Post subject: Re: AC indicator used in strategy different from graph |
Post rating: 0
|
Posted: Mon 22 Nov, 2010, 11:41
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Please choose tick data when you test your strategy, please assume attached file. Also be sure that period is equal in the strategy parameter and in the historical tester chart window.
Attachments: |
tick_data.JPG [15.32 KiB]
Downloaded 489 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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|