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.

ITester
 Post subject: ITester Post rating: 0   New post Posted: Fri 28 Jan, 2011, 13:48 

User rating: 0
Joined: Thu 19 Aug, 2010, 13:53
Posts: 62
Hi,

I am going to test a strategy in a custom separate Java app using JForex API.
It appears I should use ITester.startStrategy, etc according to API.
However some pre-questions appears:
- is ITester.startStrategy() blocking ?, eg. the method waits until the strategy finish to do its job
- how do I know the strategy results, eg. profit, number of orders, etc. I see there is an option
to write report into a file but I suppose there is no need to load that file and parse it without a clear documentation.
- how do I configure the tester, eg. Tick mode, (every tick, Tick on M5 open, selected instruments)

Thank you


 
 Post subject: Re: ITester Post rating: 0   New post Posted: Mon 31 Jan, 2011, 15:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
The startStrategy is a synchronized method, if you need you can do some operations after the startStrategy method in a you test class.
To know the strategy result you can use the createReport(long processId, File file) method.
To configure tester to use specific period, please use the setDataInterval method.

Maybe you will find the following JForex Wiki article usefull: https://www.dukascopy.com/wiki/index.php ... in_Eclipse You can look at the TesterMain class example.

Please do not hesitate to contact us if you require any further information.


 

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