Symbol stats by magic
- Indicators
- Version: 1.8
- Activations: 5
What this indicator is for
It displays a panel on the MetaTrader 5 chart with the results of your trading. Data is taken from the account's trade history; it cannot trade. It answers the questions:
-
How much have I earned or lost today, yesterday, the day before yesterday, over the month and over the year?
-
On which pairs am I in profit and on which am I in loss?
-
At which hours (according to the broker's server time) do my trades bring profit, and at which do they bring losses?
-
What was the maximum drawdown?
It is especially convenient if you trade with Expert Advisors on many pairs simultaneously. On one screen you can see which pairs are working and which are dragging the account down.
What the panel shows
-
Main table. For each pair: number of deals (Deals), net profit (Net, including commissions and swap), percentage of profitable trades (Win %), profit factor (PF, profit divided by losses; a value above 1 is good; "inf" means there are no losses at all) and the current spread.
-
Totals. The TOTAL row and results for Today, Yesterday, 2 days ago, Month, Year in percent of balance and in money, plus Max DD (maximum drawdown).
-
Hourly table on the right: profit of each pair by hours 00–23 according to server time, with the sum for each hour at the bottom. From it you can see at which hours trading should be disabled.
-
Clicks. Clicking on the Deals or Net headers sorts the pairs. Clicking on a pair's name opens its chart. The X button removes the pair from the statistics and closes its chart. The Restore removed button returns the removed pairs.
-
Buttons at the bottom. Spread and Hours turn the spread column and the hourly table on and off; the choice is remembered.
Settings
| Parameter | What it does |
|---|---|
| InpMagicNumber | Filter by Magic Number, i.e. the EA's "number": each EA has its own. -1 means all account trades, including manual ones. Specify a number to view the statistics of only one EA. |
| InpDateFrom | Start of the report. 0 — automatically today 00:00 by server time. You can set your own date. |
| InpDateTo | End of the report. 0 — automatically the current server time plus one year. You can set your own date. |
| InpByOpenTime | true — trades are attributed to the day and hour of opening, false — to closing. |
| InpRefreshSec | How often to refresh the panel, in seconds. |
| InpShowSpread | Whether to show the spread column at startup. Afterwards it is toggled by the button. |
| InpShowHours | Whether to show the hourly table at startup. Afterwards it is toggled by the button. |
| InpFontSize | Panel font size. |
| InpTextColor, InpProfitColor, InpLossColor, InpBgColor | Colors of text, profit, loss and background. |
| InpPanelX, InpPanelY | Panel offset from the left and top edge of the chart. |
What is important to know
-
Time is always server time, i.e. your broker's time, not your local time.
-
If both dates are left at 0, the indicator automatically shows "today", and at midnight by server time the report switches to the new day. To view, for example, the whole past month, set both dates manually.
-
Percentages for periods are calculated from the balance at the beginning of the period. When calculated by opening time they may not match the actual balance change: a trade opened yesterday and closed today will fall into yesterday.
-
The indicator only reads history; it does not open or close anything. The X button closes the pair's charts but does not touch the trades.
