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.

CustomIndicator in same file of strategy
 Post subject: CustomIndicator in same file of strategy Post rating: 0   New post Posted: Wed 11 May, 2011, 10:58 
User avatar

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


Attachments:
CustomIndicatorStrategy.java [4.83 KiB]
Downloaded 349 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: CustomIndicator in same file of strategy Post rating: 0   New post Posted: Mon 16 May, 2011, 09:40 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This has already been fixed and will be available in the next release.


 
 Post subject: Re: CustomIndicator in same file of strategy Post rating: 0   New post Posted: Thu 14 Jul, 2011, 15:19 
User avatar

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


 
 Post subject: Re: CustomIndicator in same file of strategy Post rating: 0   New post Posted: Fri 15 Jul, 2011, 10:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
2.6.38 is the latest JForex API version. Follow the release information here:
viewforum.php?f=71


 

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