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.

Questions about results of backtest
 Post subject: Questions about results of backtest Post rating: 0   New post Posted: Wed 20 Aug, 2008, 14:48 

User rating: -
Hello,
In attached file, you can see my backtest report file generated by Dukascopy.
1) I noted that I can fill orders on weekends. It should be prohibited.
2) I noted that when I fill order with amount 1 million and then I close it, Dukascopy commission is 18 + 18 = 36. I thought commission was only when open order?
3) I have for example (first order on report) : openPrice=1.0445 and closePrice=1.0439, open and close the same day.
I expected to get : Profit/Loss = 1'000'000 * (1.0439 - 1.0445) = -600, but on report I read -574.66. Why I get this difference ?
4) I have 2 hours of difference between time of Tick when I fill order and "Open Date" in report. Same for "Close Date". What's the matter ? What is the real date for this price ?


Thank you

R. Varone


Attachments:
jforex_report2788.zip [5.35 KiB]
Downloaded 720 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: Questions about results of backtest Post rating: 0   New post Posted: Wed 20 Aug, 2008, 15:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,

Let me answer on points 2 and 3 :

2. Commissions. The commission calculated on effective turnover. For example, you buy 1 million (open), then sell 1 million (close), the
turnover is 2 millions.

3. The currency pair traded was USD/CHF, therefore the original profit and loss is in CHF, which is then converted back to the portfolio
base currency, USD in this instance.

Best regards.

David


 
 Post subject: Re: Questions about results of backtest Post rating: 0   New post Posted: Thu 21 Aug, 2008, 08:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
1) Will be checked.
4) Are you sure, that you used correct TimeZone? In report we use GMT time to be sure it's the same everywhere we run the strategy. If you print the time with DateFormat, make sure you set the correct time zone before formatting the date:
DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
format.setTimeZone(TimeZone.getTimeZone("GMT"));
context.getOut().println(format.format(new Date(order.getCreationTime())));


 

Jump to:  

cron
  © 1998-2024 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