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 implement external variables into custom strategy?
 Post subject: How to implement external variables into custom strategy? Post rating: 0   New post Posted: Wed 30 Sep, 2009, 09:45 

User rating: 1
Joined: Sat 26 Sep, 2009, 21:06
Posts: 13
I saw in some strategy examples something like this:
@Configurable("") public int [variable]=[value];

Is this flag a "clean way"?


 
 Post subject: Re: How to implement external variables into custom strategy? Post rating: 0   New post Posted: Wed 30 Sep, 2009, 14:15 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
as far as you want that user sets his own parameter values - Yes its "clean".
Here's from documentation:
"Fields marked with Configurable annotation will be shown in dialog before strategy start.
Values from that dialog will be set to fields before calling onStart method."


 
 Post subject: Re: How to implement external variables into custom strategy? Post rating: 0   New post Posted: Wed 30 Sep, 2009, 15:48 

User rating: 1
Joined: Sat 26 Sep, 2009, 21:06
Posts: 13
from documentation? Sorry for stupid question, but which doc do you mean? I've found javadoc generated https://www.dukascopy.com/swiss/docs/api/index.htm which is very, very, VERY useful and thanks a lot for them, but I didn't see nothing about @Configurable flag there.. Maybe I just missed it.. thanks anyway for help


 
 Post subject: Re: How to implement external variables into custom strategy? Post rating: 0   New post Posted: Wed 30 Sep, 2009, 15:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here's link:
https://www.dukascopy.com/swiss/docs/api/com/dukascopy/api/Configurable.html
;)


 

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