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.

Help with strategy
 Post subject: Help with strategy Post rating: 0   New post Posted: Mon 30 Dec, 2013, 15:34 
User avatar

User rating: 0
Joined: Thu 03 May, 2012, 16:59
Posts: 7
Location: Colombia, Bogota
Hello support,

I have a strategy that I was using based on the persbbands indicator but now I need to change it to work with the APO indicator. I made all the adjustments but I still get an error message on line 35 when I compile it.

Can you give me a hand on fixing it.

Happy Holidays!


Attachments:
Persbands.java [30.64 KiB]
Downloaded 78 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: Help with strategy Post rating: 2   New post Posted: Mon 30 Dec, 2013, 20:22 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
simonoviedo wrote:
    public double matype = smma;
Variable smma is not declared at all.

If you mean this: https://www.dukascopy.com/client/javadoc/com/dukascopy/api/IIndicators.MaType.html#SMMA,
you should use another approach:
IIndicators.MaType matype = IIndicators.MaType.SMMA;


And let me give you a piece of advice: use some IDE (e.g. NetBeans, Eclipse).


Happy New Year!


 
 Post subject: Re: Help with strategy Post rating: 0   New post Posted: Thu 02 Jan, 2014, 10:04 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
hebasto wrote:
And let me give you a piece of advice: use some IDE (e.g. NetBeans, Eclipse).
Yes, indeed. They provide you assistance on compile-time errors. See:
https://www.dukascopy.com/wiki/#Use_in_Eclipse
https://www.dukascopy.com/wiki/#Use_in_NetBeans


 

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