Nice class! :) Thanks.
You could also add dates from/to. And one more interesting idea came to mind. Make a horizontal scroll and besides dates from/to you can add one more parameter where you can specify how many trades to use to calculate statistics. Then the user drags the scroll and sees how the stats have changed during the trading process. It would turn out to be a very interesting and very informative tool. ))
Nice class! :) Thanks.
You could also add dates from/to. And one more interesting idea came to mind. Make a horizontal scroll and besides dates from/to you can add one more parameter where you can specify how many trades to use to calculate statistics. Then the user drags the scroll and sees how the stats have changed during the trading process. It would turn out to be a very interesting and very informative tool. ))
I think the user with such a scroll will not be able to catch with the eye how the course of trade changed.
Another thing is to make it graphically.
I think the user with such a scroll will not be able to see with the eye how the course of trade has changed.
Another thing is to make it graphically.
Initially, I did not plan to overload the panel with settings.
You can of course add dates (from - to) and a choice of which instrument to read statistics for (selected or all).
About scrolling - I'm not sure that it is necessary to do it for this panel, although you can think about it.
In general, suggest whatever your heart desires, I will think how to implement it.
It is possible that for this purpose I will create another panel, and realise on it everything that is necessary.
The first task is to test what is already written.
Personally, I tested it on the championship accounts and compared it with the readings in the table of the participant's report.
Maybe someone in the tester will also test the STradeStates class itself. It is written about it here.
You can write an article on the same topic for MQL5. Especially since there are much more possibilities for creating reports.
Oh, it would be a wonderful and much-demanded article. Probably Andrey Voitenko would write it well, since he has already started the topic. :)
I have an idea for another article, but now I have no time at all (I'm working on a big custom project). I didn't even have time to prepare an expert for the championship, so I'm skipping this year.
in ahpr calculation - not the denominator is checked for 0
why the last HPR element is not used in the calculation of sharp_ratio - in the Std calculation loop?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
TradeStatisticsPanel:
The panel for the display of statistical parameters calculated based on the trade history.
Author: Andrey Voytenko