Post subject: CustomIndicator in same file of strategy
Post rating: 0
Posted: Wed 11 May, 2011, 10:58
User rating: 2
Joined: Tue 17 May, 2011, 16:35 Posts: 10 Location: ItalyItaly
Hi, attached is the code to reproduce the issue.. It seems that onstart method of the custom indicator is never been called. That's causing a nullpointer exception because SMA indicator is NULL...
Any hint? I need this code because strategy context only allows custom indicator in the same file of the strategy. best, chriz
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: CustomIndicator in same file of strategy
This has already been fixed and will be available in the next release.
chriz
Post subject: Re: CustomIndicator in same file of strategy
Post rating: 0
Posted: Thu 14 Jul, 2011, 15:19
User rating: 2
Joined: Tue 17 May, 2011, 16:35 Posts: 10 Location: ItalyItaly
Dear support,
Support wrote:
This has already been fixed and will be available in the next release.
Currently I'm using - JForex API ver 2.6.38 / Dukascopy ver. 2.13.25 And it seems the bug still persists... Maybe I'm doing something wrong. Could you provide a code sample that works ? Or the fix hasn't yet been released ?
Any help will be appreciated,
thanks, chriz
API Support
Post subject: Re: CustomIndicator in same file of strategy