We have only one method to get the results of the test.
ITesterClient.createReport(long processId, java.io.File file);
I think API programmers should implement some of these suggested methods (most off this calculations done becouse of the method above)
It is needed to write easily a tester program that can test strategies in loops and reconfigure the strategies parameters.
My suggestions to create this methods in ITesterClient :
List<String> getOpenOrders(long processId); //all instrument
List<String> getOpenOrders(long processId,Instrument inst);
List<String> getClosedOrders(long processId); //all instrument
List<String> getClosedOrders(long processId,Instrument inst);
retunrns a list of the closed orders with CSV format, one line one trade with the informations separated with comas
(Label, Amount, Direction, Open price, Close price, Profit/Loss, Profit/Loss in pips, Open date, Close date, Comment)
double getProfitLossInAccountCurrency(long processId);
double getSumOfPositiveTrades(long processId);
double getSumOfNegativeTrades(long processId);
double getProfitFactor(long processId); // it is not so importat if we have the two above
int getTotalNumberOfTrades(long processId); // it counts also the cancelled and rejected trades!
int getOpenedTrades(long processId,Instrument inst);
int getOpenedTrades(long processId); //all instrument
int getClosedTrades(long processId,Instrument inst);
int getClosedTrades(long processId); //all instrument
double getTurnoverInUSD(long processId);
double getCommissionInUSD(long processId);
-----
But its all done I think becouse it is shown on every report just in html format.
//off course we can write a html parser and get the infos from it...
But do much more with this!
I missing these infos:
win%
consecutive wins/loss,
max win/loss (pips/usd)
maximal DD (%/USD)
relative DD (%/USD)
absolute DD (%/USD)
Please implement these methods for the JForex community!
Thanks
Zoltan Humpok