Daily Stats Lots and Drawdown Monitor
- Indicators
-
Gabriel Paul Ange Perrin
I publish products for MetaTrader on the MQL5 Market: Breakeven Bot, SL Manager, Daily PnL Notifier, Zone Limite and Sentora. - Version: 1.7
Daily Stats is a free indicator for MetaTrader 5 that draws a compact panel on your chart with the profit and loss of each day, the lots traded today, yesterday and in total, and the largest floating drawdown since the indicator was loaded. It reads the account history only. It never sends an order.
It is made for traders who want to see their daily results at a glance, without exporting the history to a spreadsheet. It follows the whole account, whichever Expert Advisor or manual trade produced the deals.
What the panel shows
- One line per day - the date and the result of that day, in green when positive, in red when negative.
- Lots traded - today, yesterday and in total, counted on closing deals.
- Largest floating drawdown - in percent, measured as (balance - equity) / balance and kept as the highest value seen.
- Total of the page - the sum of the days shown, which you can hide.
The header shows the page number, so you always know which period you are looking at. The panel is drawn on a dark background and the text stays readable over the candles.
How the numbers are counted
- Days follow the server time of your broker, from midnight to midnight.
- The result of a day adds profit, swap, commission and fees of the closing deals. The commission and fees of an opening deal are counted on the day it was opened.
- Deposits and withdrawals are not part of the result, because only buy and sell deals are read.
- By default all symbols are counted. FilterBySymbol keeps only the symbol of the chart.
- Lots use as many decimals as the lot step of the chart symbol, with three at least. Results show two decimals, and a day without any deal shows +0.00.
Inputs
- LinesPerPage, PageStart - days shown per page (1 to 500, default 30) and the first page shown (0 is the most recent days).
- Corner, XDistance, YDistance - corner of the chart (0 top left, 1 top right, 2 bottom left, 3 bottom right) and the offset in pixels.
- FontSize, LineSpacing, FontName - size, line spacing in pixels and font of the text.
- ShowTotalPage, ShowButtons - show the total of the page and the two navigation buttons (both on by default).
- FilterBySymbol, DebugDeals - count only the chart symbol, and show the number of deals next to each day (both off by default).
The settings are checked at start. LinesPerPage outside 1 to 500, or a first page too far back, is refused: the indicator does not start and the Experts log tells you why.
How to use
- Attach Daily Stats to any chart, on any symbol and any timeframe. It uses no DLL.
- It only reads the history of your account: it never opens, modifies or closes a trade, and it never sends any order.
- Press the buttons << and >> on the chart to go to older or more recent pages. The next page stops at the last page that holds a deal.
- The panel is redrawn about once per second, and as soon as the number of deals changes. When you remove the indicator, everything it drew is deleted from the chart.
- The text is in English, or in French when your terminal is in French.
The screenshots come from the Strategy Tester (a backtest, with test trades) to show the layout. They are not real results. In the tester, use PageStart to choose the page shown. The buttons are meant for your live chart.
Limits you should know
- The drawdown starts at zero each time the indicator is loaded. It is not rebuilt from the past.
- A deal that reverses a position in one step counts in the result but not in the lots.
- The panel has a fixed width of 340 pixels and sits in front of the candles.
- The history is read in full every second, so a very long history costs a little more computing time.
Support
Questions or suggestions: use the Comments tab of this page or send me a message through my MQL5 profile: https://www.mql5.com/en/users/centralia
Daily Stats displays figures from your own account history. It does not trade, give signals or predict anything. Trading involves a high level of risk and you can lose some or all of your capital. This tool is a software utility, not investment advice. You are solely responsible for your trading decisions.
