Dukascopy
 
 
Wiki JStore Search Login

APICLIENT-130 ITesterReportData always returns 'null' for Lists
 Post subject: APICLIENT-130 ITesterReportData always returns 'null' for Lists Post rating: 0   Post Posted: Fri 15 Jun, 2012, 09:34 

User rating: 6
Joined: Sat 03 Mar, 2012, 10:29
Posts: 9
No matter how I try to access the Lists obtained from ITesterReportData, they are always 'null'. Am I missing something, or it also does not work for you? Please see the files I've attached.

Code:
            public void onStop(long processId) {
                LOGGER.info("Strategy stopped: " + processId);
                File reportFile = new File("C:\\report.html");
                try {
                    client.createReport(processId, reportFile);
                } catch (Exception e) {
                    LOGGER.error(e.getMessage(), e);
                }
               
                ITesterReportData reportData = client.getReportData(processId);
                System.out.println("MA_play.trades:\t" + MA_Play.trades);               
                System.out.println("getStrategyName():\t" + reportData.getStrategyName());
                System.out.println("getInitialDeposit():\t" + reportData.getInitialDeposit());
                System.out.println("getFinishDeposit():\t" + reportData.getFinishDeposit());
                System.out.println("getOpenOrders():\t" + reportData.getOpenOrders());               
                System.out.println("getClosedOrders():\t" + reportData.getClosedOrders());
                System.out.println("getParameterValues():\t" + reportData.getParameterValues());               
                System.out.println("getPerfStats():\t" + reportData.getPerfStats());               
               
                if (client.getStartedStrategies().size() == 0) {
                    System.exit(0);
                }
            }

Output:
MA_play.trades:   61
getStrategyName():   singlejartest.MA_Play
getInitialDeposit():   50000.0
getFinishDeposit():   49995.25
getOpenOrders():   null
getClosedOrders():   null
getParameterValues():   null
getPerfStats():   null


The report.html is created and it contains the data, but the Lists are empty. Why?


Attachments:
MA_Play.java [2.95 KiB]
Downloaded 369 times
TesterMainOriginal.java [5.36 KiB]
Downloaded 371 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: APICLIENT-130 ITesterReportData always returns 'null' for Lists Post rating: 0   Post Posted: Mon 18 Jun, 2012, 10:21 

User rating: 6
Joined: Sat 03 Mar, 2012, 10:29
Posts: 9
Could someone please confirm this bug, or is it just me who's having this?


 
 Post subject: Re: APICLIENT-130 ITesterReportData always returns 'null' for Lists Post rating: 0   Post Posted: Mon 18 Jun, 2012, 13:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Your issue is registered. It will be investigated and fixed (if any error) as soon as possible.


 

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