Libraries: Report - page 14

 
fxsaber #:

I'm a total zero in HTML, so any suggestions for improvement are welcome.

Of course, some visual decisions are tasteful. But in terms of size and render speed are objective metrics.

Pagination Table

https://codepen.io/yasser-mas/pen/pyWPJd

 
Anatoli Kazharski #:

Pagination Table

https://codepen.io/yasser-mas/pen/pyWPJd

Thanks. There's some CSS and JS in there too. I'm totally out of the loop.

 

I'm in the thread. Added another script, I think it's better.
Now it looks like this: (animated Gif)

It is convenient to compare trades of Virtual and MQ tester
You can unload even all 200+ thousand trades. Browser thinks for 10-20 seconds and then shows it. All the lines are set to style="display:none;", and then I open the necessary ones with JavaScript. Disadvantage: in browsers without JavaScript will be a blank screen.

But it is better not to upload 200 thousand, the tester took 4 GB when creating the file (peak in the picture). That's why I set the first and last 1000 lines by default (and added a variant for 10000 lines).




Files:
Report.mqh  304 kb
 
Didn't realise what the numbers in brackets in the lots column meant, for example 10.00 (2,144,290.00)



Went into the code to look:
              ((OrderType() <= OP_SELL) ? (" (" + REPORT::VolumeToString(OrderLots() * TickValue *
                                                                         (OrderOpenPrice() +  OrderClosePrice())) + ")")
Corrected it to
              ((OrderType() <= OP_SELL) ? (" (" + REPORT::VolumeToString(OrderLots() * TickValue *
                                                                         (OrderOpenPrice() -  OrderClosePrice())) + ")")

Now the profit is in money:

But it is already there in the profit column. Probably it can be deleted.

Or is it correct through + ? What does this figure mean then? Traded volume in deposit currency?

It is a pity that there is no description of fields in the library description, I have to spend a lot of time to understand what is what.

 
Forester #:

Traded volume in deposit currency?

Yes.
 
When compiling Report.mqh, the following error occurs:
'OrderDealsAmount' - undeclared identifier Report.mqh 1230 36
'OrderLotsOpen' - undeclared identifier Report.mqh 1277 5


Can you tell me how to overcome this?

 
Sergey Porphiryev #:
When compiling Report.mqh, the following error occurs:
'OrderDealsAmount' - undeclared identifier Report.mqh 1230 36
'OrderLotsOpen' - undeclared identifier Report.mqh 1277 5


Can you tell me how to overcome this?

Update MT4Orders.

 

What is the percentage in the Slippage field?


According to the code

-100 * (SumProfit - SumProfitNoSlip) / comm

I.e. (profit slippage / commission) in % = - 100 * 54600.53 / -997945.98 = 5,5%

It would be more logical to have (profit slippage / profit) as % of profit slippage.

 
Forester #:

What is the percentage in the Slippage field?


According to the code

-100 * (SumProfit - SumProfitNoSlip) / comm

I.e. (profit slippage / commission) in % = - 100 * 54600.53 / -997945.98 = 5.5%

That's the point. How much of the commission is covered by the slippage. For example, I trade only limiters. They have only positive slippage. So in some cases this slippage can completely cover the commission - the index is above 100%.

It would be more logical (profit slippage / profit) to get the % of profit slippage

No, because the profit can be negative.

 
Added MaxLengthDD.