Parse MT4 html reports - page 2

 
Alex.Piech.FinGeR:
thanks good job i possible with equity curve ?

It is the script to gerenate the statement.

Attach the script to the chart and find the statement in /file folder.

That's all.

 
RickD:
Hi!

Here is my script for MT4.

1. You can hide/show separated columns now.

2. Sort function added. You get a mechanism of sorting data by columns.

3. Validate function added. The final report will have only validated data.

RickD,

Thanks a lot for your script. It is very useful.

You said that we may use some of the functions of this script. But sorry I do not know up to now how to use these functions (to sort the orders by pairs etc). I know that I should attach the script to the chart and the report will wait for me in /file folder. But how to use all the options of this script?

And just a suggestion: you did your post in "Commercial Trading Systems and indicators" section but I am moderating this section so I took some time to see your post and to recognize that your post has nothing with this section and to move it to the right place. Please if you are posting something for free (as usually) do not use Commercial section.

 
newdigital:
RickD,

Thanks a lot for your script. It is very useful.

You said that we may use some of the functions of this script. But sorry I do not know up to now how to use these functions (to sort the orders by pairs etc). I know that I should attach the script to the chart and the report will wait for me in /file folder. But how to use all the options of this script?

1. Sorting.

Sorting bases on SortBy[] and SortBy2[] arrays.

You can find SortBy arrays at the beginning of my script.

Example:

1)

int SortBy[] = {BY_OPENTIME};

The script will sort all the orders by OPENTIME column.

The order is ascending by default.

2)

int SortBy[] = {BY_SYMBOL, BY_PROFIT};

int SortBy2[] = {ASK, DESK}; (Sorry for my misprint, should be DESC)

No comment

Use following predefined constants:

BY_TICKET

BY_OPENTIME

BY_TYPE

BY_LOTS

BY_SYMBOL

BY_OPENPRICE

BY_SL

BY_TP

BY_CLOSETIME

BY_CLOSEPRICE

BY_COMMISSION

BY_SWAP

BY_PROFIT

BY_COMMENT

 

2. Validation

There is Validate function at the end of my script:

bool Validate(int ticket) {

...

}

Example:

1)

Let I need report containing only GBPUSD orders.

I use the following Validate function:

bool Validate(int ticket) {

return (OrderSymbol() == "GBPUSD");

}

It is not necessary to call OrderSelect function.

The script calls OrderSelect automatically before Validate.

2) If I need all closed by takeprofit orders only:

bool Validate(int ticket) {

return (StringFind(OrderComment(), "[tp]") != -1);

}

3) If I need all the orders opened after 2005.06.13 20.00:

bool Validate(int ticket) {

return (OrderOpenTime() > StrToTime("2005.06.13 20.00"));

}

 

How to show/hide separated columns

#define SHOW_OPENTIME 1

#define SHOW_OPENPRICE 1

#define SHOW_SL 1

#define SHOW_TP 1

#define SHOW_CLOSETIME 1

#define SHOW_CLOSEPRICE 1

#define SHOW_COMMISSION 1

#define SHOW_SWAP 1

#define SHOW_COMMENT 0

It means OPENTIME, ..., SWAP columns are visible (1), the COMMENT column is hidden (0).

 
RickD:
How to show/hide separated columns

#define SHOW_OPENTIME 1

#define SHOW_OPENPRICE 1

#define SHOW_SL 1

#define SHOW_TP 1

#define SHOW_CLOSETIME 1

#define SHOW_CLOSEPRICE 1

#define SHOW_COMMISSION 1

#define SHOW_SWAP 1

#define SHOW_COMMENT 0

It means OPENTIME, ..., SWAP columns are visible (1), the COMMENT column is hidden (0).

Is it possible to sort by pips and to get total?

For example I am testing one EA on as many pairs as possible. Possible to use this script to know how many pips (in total) EA made for each particular pair during the estimated period of time (weekly let's say)?

 

I am not sure if I should start a new thread for this so excuse me if I am a bit off topic here:

I was using a small free software called "MTreport4" to analyse statements (mine and the ones from other testers) to show pips made or lost per currency.

But now with the new build 188, the software won't work anymore.

Does anybody have a different "analyser" software that is compatible with build 188?

Thanks

Sada

 

I just found this nifty program today and it was *almost* what I was looking for.

Good thing I know how to code

I added a function to show subtotals for each specific EA based on comment along with each EA's profit factor.

It also sorts by comment properly now, the [sl] and [tp] don't get in the way.

Hope someone else finds this usefull.

Just drag the script onto any chart and it will get all your history.

-Adam

Files:
 
newdigital:
Is it possible to sort by pips and to get total? For example I am testing one EA on as many pairs as possible. Possible to use this script to know how many pips (in total) EA made for each particular pair during the estimated period of time (weekly let's say)?

Use Validate function to designate the estimated period and currency pair. Unfortunately the script shows profit in deposit currency instead of pips.

Here is new version of my report:

https://www.mql5.com/en/forum/174822

 
phazei:
I just found this nifty program today and it was *almost* what I was looking for.

Good thing I know how to code

I added a function to show subtotals for each specific EA based on comment along with each EA's profit factor.

It also sorts by comment properly now, the [sl] and [tp] don't get in the way.

Hope someone else finds this usefull.

Just drag the script onto any chart and it will get all your history.

-Adam

hi adam,

would be great if we can make this with ervery pair !!!

Thanks for your help,

mr.trader !

Reason: