- MagicNumber: Default -1, meaning include all trades
- StartDate: Take a guess
- EndDate: Take another guess
- RefreshMinutes: How many minutes to the next refresh
- ReportType: OPEN/CLOSED/BOTH: List either OPEN, CLOSED or BOTH open and closed orders. In case of OPEN, the StartDate and EndDate are ignored.
UPDATE: I added the option to list both OPEN and CLOSED trades. These are then lumped together and the totals are aggregated.
UPDATE: You can now also filter trades by order comment. There is a new parameter called, CommentFilter (defaults to "") that can be used to only include trades that contain part of the CommentFilter text in their OrderComment(). Note: the string comparison is case sensitive, so if you want trades with comment "CT" and the CommentFilter is "ct", you won't get what you want.
UPDATE: Minor cosmetic update, as suggested by wolfeman: The grand total PIP and Dollar count figure is now better readable.
UPDATE: Added the option to total the trade results by magic number, order comment, as well as by symbol name. For that there is a new parameter, groupBy, that can be SYMBOL (default), MAGIC or COMMENT
UPDATE: Added some color schemes: Beige (Default), Solarized and Turquoise, Magenta and BlackNWhite, as some people didn't like the beige scheme. No change in the functionality.
UPDATE: Under some circumstances (by clicking on something else than a column title), it was possible to get the following error:. In that case, the indicator would 'hang' and would not delete the screen objects when unloaded. This bug has now been fixed.
UPDATE: Added the option to select "Today", "This Week" and "This Month" as special start and end date options. You can still specify your own start and end dates, by selecting "Custom Dates" for the DateChoice. This was a requirement as http://www.stevehopwoodforex.com/phpBB3 ... 7277posted by Bruster400.
UPDATE: There was a bug that prevented you from selecting other screen objects (such as horizontal lines) when TradeReport was running as the OnChartEvent() in trade report would capture the mouse-click to these other objects. This has now been fixed.
UPDATE: Thomas (tomele) has kindly made some cosmetic changes to the format of the report, particularly:
- Added x/yOffset as input
- Changed vertical text alignments
- Changed horizontal text alignment for last row
- Changed colors for last 2 rows
- Some alignments for legend
Thank you Thomas!
UPDATE: It is now possible to filter the result set of trades by either (1) a list of currency pairs or (2) a list of currencies
There is no need to include the symbol extension on your list of symbols, even if your broker uses them. Eg. Don't specify AUDCADc, AUDJPYc, NZDJPYc, but just AUDCAD, AUDJPY, NZDJPY.
UPDATE 2017.09.08: The report can now optionally display some extended statistics as suggested by RiskLessPips: If you set the new parameter ShowExtendedStats to true, it will calculate and display the "Expected earnings per trade" and the "Expected return per dollar" figures. These figures are calculated from the filtered trades as displayed in the report -- not all trades.
UPDATE: 2018.01.31: The input parameter MagicNumbers now expects a comma-separated list of magic numbers, to allow the selection of a subset of trades by magic number. If this parameter is left blank (the default), all magic numbers are selected.
UPDATE: 2018-06-30: Added a save button to allow the saving of selected trades to a CSV file.
UPDATE: 2018-07-18: Additional column 'Nett %' by Paul (Baluda). Well done Paul, you are a star!
UPDATE: 2018-08-24: Added additional groupBy options: group by 'Day of Week', 'Week', or 'Month'
UPDATE: 2018-10-14: Added ability to group by HOUR. Now it is possible to filter by a (comma-separated) list of order comments.
UPDATE: 2019-01-26: Squashed a divide-by-zero bug and updated the default report end date to the end of 2019.
UPDATE: 2019-10-10: As requested by Tebis (Ernst), the nett% profit/loss value can now be calculated relative to (1) the initial balance (default) (2) the current balance (as it was before) and (3) a given custom balance. There are two new parameters: balanceChoice and customBalance. See also: this post.
UPDATE: 2020-06-09: Added a scrollbar and made some other changes so that we can now run multiple TradeReport's on the same screen.
UPDATE: 2020-06-28: Small bug fix regarding the auto sizing of the first column.
UPDATE: 2020-07-19: Now when you select "Just Today's Trades", "Just This Week's Trades" or "Just This Month's Trades", these selections are dynamic, meaning that if the day, week or month ticks over to the next day, week or month, you don't have to re-initialize TradeReport to get the intended date selection.