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.

Offline Tester
 Post subject: Offline Tester Post rating: 0   New post Posted: Mon 27 Sep, 2010, 13:31 

User rating: 0
Joined: Mon 27 Sep, 2010, 13:19
Posts: 6
Hello Support,

I'm currently working on a strategy tester for testing strategies off-line.

Since I want the strategies to be tested with varying (@configurable) variables, I have to get and set those variables in my program.

So, how can I get and set all variables with the @configurable-annotation from the strategy? Is there any other possibility than Java Reflection?

greetings

C


 
 Post subject: Re: Offline Tester Post rating: 0   New post Posted: Tue 28 Sep, 2010, 03:20 

User rating: 0
Joined: Tue 28 Sep, 2010, 02:12
Posts: 6
hi C,

I post my idea, I popup a dialog, after IStrategy start. then can dynamic change the settings.

just be careful with Lock.

BR
K


 
 Post subject: Re: Offline Tester Post rating: 0   New post Posted: Tue 28 Sep, 2010, 08:47 

User rating: 0
Joined: Mon 27 Sep, 2010, 13:19
Posts: 6
Yes, I want to popup a menu to change the parameters. And I want to write my own program that can do it. But how do I read out only those variables that have the @configurable annotation?

The Dukscopy software does this for me, but since I want to create an offline tester and I don't have the code of Dukascopy, this doesn't help.


 
 Post subject: Re: Offline Tester Post rating: 0   New post Posted: Tue 28 Sep, 2010, 14:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
hi,
please consider this https://www.dukascopy.com/wiki/index.php/Detect_annotations_in_a_strategy


 

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