stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

TradeReport
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3893
Page 16 of 21
Author:  Yannis [ Tue Oct 30, 2018 1:37 pm ]
Post subject:  TradeReport

Thank you Paul, great addition.
Author:  tomele [ Fri Jan 11, 2019 1:11 pm ]
Post subject:  TradeReport

Hi @all.

Just a heads up that the default report end date is 2018-12-31. If you haven't changed that yet, you should.

Cheers
Thomas
Author:  cerugo [ Thu Feb 14, 2019 5:06 pm ]
Post subject:  TradeReport

renexxxx » Thu Oct 23, 2014 6:48 am wrote:Here is an indicator that reports on the open or historical trades. There are already a few of these around, but I felt like creating another one. The columns are sortable, with a single mouse-click. Inputs:
  • 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.
Code attached. Have fun!

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.
Excellent job. The best and clear Trading Report. Thanks a lot
Author:  DNTme [ Thu Feb 21, 2019 11:53 am ]
Post subject:  TradeReport

Hello guys,

I want to report on issue i have found on TradeReport 1.20

The % as a total is not correctly calculated. Did anyone notice this yet?

In my example, the total should be 2.4% not 2.8%

Can Rene or someone savvy fix this, please?

thank you
Author:  Baluda [ Thu Feb 21, 2019 12:23 pm ]
Post subject:  TradeReport

DNTme » Thu Feb 21, 2019 12:53 pm wrote:The % as a total is not correctly calculated. Did anyone notice this yet?

In my example, the total should be 2.4% not 2.8%
I coded the % column in a mod that Rene added to the main branch/code.

Please be clear in your error description. Why should it be 2.4%? Please must understand I do not open the code editor when someone shouts 'It does not work'.

Paul
Author:  Baluda [ Thu Feb 21, 2019 12:49 pm ]
Post subject:  TradeReport

DNTme » Thu Feb 21, 2019 1:39 pm wrote:1.1% + 0.5% + 1.0% - 0.2% = 2.4% not 2.8%
But that is not the right calculation. The percentage calculation is (and should be) based on the Nett P/L and the Account balance.
Author:  SteveHopwood [ Thu Feb 21, 2019 11:10 pm ]
Post subject:  TradeReport

Baluda » Thu Feb 21, 2019 12:49 pm wrote:
DNTme » Thu Feb 21, 2019 1:39 pm wrote:1.1% + 0.5% + 1.0% - 0.2% = 2.4% not 2.8%
But that is not the right calculation. The percentage calculation is (and should be) based on the Nett P/L and the Account balance.
The poster has run into severe trouble here and has been advised to keep a very low profile.

Re this from your earlier reply:
Please be clear in your error description. Why should it be 2.4%? Please must understand I do not open the code editor when someone shouts 'It does not work'.
Good for you. :clap: :clap: :clap: :clap: :clap: You have learned from earlier experiences that this is a bad idea. I am nowhere near your league as a programmer, yet still know exactly how you feel.

The poster has received his warnings. There follows a ban should he ignore them.

I trust that all this encourages les autres?

:xm: :rocket:
Author:  The_Snowman [ Fri Apr 19, 2019 9:56 am ]
Post subject:  TradeReport

An awesome tool and much appreciated the hard work and sharing of such :good:

Just wondering if a column for the Swaps could be included?

Forgive if that is not possible, desirable or even sensible,

Regards, John
Author:  renexxxx [ Fri Apr 19, 2019 8:55 pm ]
Post subject:  TradeReport

The_Snowman » Fri Apr 19, 2019 7:56 pm wrote: Just wondering if a column for the Swaps could be included?
Currently, the "profit" column represents the OrderProfit + OrderSwap + OrderCommission for the group of trades contained in a row of the report. Of course, we could split this out over three columns, but on some screens the width of the report would exceed the available screen width.

If you press the little button that looks like an old fashioned diskette (on the bottom right), a file with the name TradeReport_<accountNo>.csv is created in the \Files folder. This file contains all relevant data (including the SWAP figure) for the group of trades selected in the report. It can be opened in Excel or its open source equivalent. You can then tinker with that data to your hearts content. Hopefully this fulfills your requirement.

Regards.
Author:  The_Snowman [ Sun Apr 21, 2019 12:14 am ]
Post subject:  TradeReport

renexxxx » Sat Apr 20, 2019 6:55 am wrote:
The_Snowman » Fri Apr 19, 2019 7:56 pm wrote: Just wondering if a column for the Swaps could be included?
Currently, the "profit" column represents the OrderProfit + OrderSwap + OrderCommission for the group of trades contained in a row of the report. Of course, we could split this out over three columns, but on some screens the width of the report would exceed the available screen width.

If you press the little button that looks like an old fashioned diskette (on the bottom right), a file with the name TradeReport_<accountNo>.csv is created in the \Files folder. This file contains all relevant data (including the SWAP figure) for the group of trades selected in the report. It can be opened in Excel or its open source equivalent. You can then tinker with that data to your hearts content. Hopefully this fulfills your requirement.

Regards.
I didn't know that about the data separation using the csv files, I will check it out.

My aim was not so much to tinker with the data but rather to easily monitor how a trading method that only trades in the direction of positive swaps was performing.

I don't know about screen width problems, I have 3 x 24" monitors and would assume coders would use something similar; although an image of hunchback using a 13" laptop come to mind :lol:

Thanks again :good:
All times are UTC Page 16 of 21