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.

ITesterClient - how to load a parameter preset
 Post subject: ITesterClient - how to load a parameter preset Post rating: 0   New post Posted: Mon 17 May, 2010, 09:33 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Is it somehow possible to load a saved set of @Configurable-parameters from within the ITesterClient?
Something like
Quote:
setParameters(String paramSetID)
?

And/or is it possible to set single parameter values prior to calling startStrategy(...) ?

Best, RR.


 
 Post subject: Re: ITesterClient - how to load a parameter preset Post rating: 0   New post Posted: Tue 18 May, 2010, 08:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
you can set a parameter directly using strategies object. For example, if you have a parameter like this
@Configurable("Test") public String test;
in your strategy, then you could set it using following code
        TestStrategy test = new TestStrategy();
        test.test = " Testing parameter ";
       
        client.startStrategy(test);


 

Jump to:  

  © 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