TradeReport

Thingies such as TradeReport and TradeChart
Post Reply
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

TradeReport

Post by renexxxx »

Over60 » Sun Jan 17, 2016 6:30 pm wrote:But in addition I´d like to define a profit-limit in currency (for account control), say in the example 20 ($,€) profit to get an pop-up alert or/and an email-message, when the defined profit-limit in summary for the open/active orders has been crossed.
Although it wouldn't be too hard to add this sort of functionality, I am making the point that TradeReport is just that, a Trade Report, not a Trade Monitor. The initial idea was to just report on closed trades. The current profitability of open trades was added at a later stage. If we are now going to send alerts if certain profit targets have been reached, if feel that we are building a different tool. A next request would undoubtedly be, to close these open trades if/when these profit targets have been reached. And then we are talking about a Trade Manager. Of course you can bang a nail in the wall with a pair of pliers, but I'd think that a hammer would be easier.

So, I am going ahead and resist this change request.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

TradeReport

Post by SteveHopwood »

renexxxx » Sun Jan 17, 2016 9:04 pm wrote:
Over60 » Sun Jan 17, 2016 6:30 pm wrote:But in addition I´d like to define a profit-limit in currency (for account control), say in the example 20 ($,€) profit to get an pop-up alert or/and an email-message, when the defined profit-limit in summary for the open/active orders has been crossed.
Although it wouldn't be too hard to add this sort of functionality, I am making the point that TradeReport is just that, a Trade Report, not a Trade Monitor. The initial idea was to just report on closed trades. The current profitability of open trades was added at a later stage. If we are now going to send alerts if certain profit targets have been reached, if feel that we are building a different tool. A next request would undoubtedly be, to close these open trades if/when these profit targets have been reached. And then we are talking about a Trade Manager. Of course you can bang a nail in the wall with a pair of pliers, but I'd think that a hammer would be easier.

So, I am going ahead and resist this change request.
Good plan.

Plus, there are probably a fair few half-decent trade managers available here at SHF should Over60 care to go looking for them. Hunting down memory lane throws up distant recollections of MPTM, BPTM, APTM. I am sure they are available here somewhere, if only I could remember where....................................

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
xray2
Posts: 9
Joined: Tue Dec 08, 2015 3:19 am

TradeReport

Post by xray2 »

This is such a nice tool renexxxx. I just wanted to Thank you personally.
Bruster400
Trader
Posts: 192
Joined: Tue Sep 24, 2013 3:19 pm

TradeReport

Post by Bruster400 »

TFL999 » Mon Sep 07, 2015 1:49 pm wrote:Thanks this is really a great indicator.

At the moment I'm using it to see my current day trading report. So I change the start day every day.
I'm not a coder but I was trying to change the code so it would take the current day. I was looking in the help file of MetaEditor how I could take the current day as start value. I found I could use TimeCurrent(), but this also takes the current time.
Can somebody give me a push in the right direction or a little help what code to use so StartDate uses the current day at 00.00hr.

I want to change this line:
input datetime StartDate = D'2015.01.01 00:00';

to something like:
input datetime StartDate = TimeCurrent();

But then just take the current day instead of day and time.

Thank you for any help!

Hi,

I was looking for a similar "teensy bit extra" but then I read Steve's earlier posts about mission creep and I decided against it!! Instead I took it as a challenge to my fledgling coding skills to see if I could add this functionality myself.

Now at this point I have to emphasise that I am in awe of the coding skills of Rene and the other coders who make this forum what it is. So, Rene, I fully understand that this is your thread and your indicator so please feel free to delete this post and keep the indi how you intended it. If you actually think it's a worthwhile addition and you want to incorporate it at some point in the future then hopefully I've saved you a little time. It's only code that would take you minutes to knock out but I thought it best to share it rather than ask you to do it.
TradeReport (1).mq4
You do not have the required permissions to view the files attached to this post.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

TradeReport

Post by renexxxx »

Bruster400 » Fri Mar 18, 2016 5:14 am wrote:
Hi,

I was looking for a similar "teensy bit extra" but then I read Steve's earlier posts about mission creep and I decided against it!! Instead I took it as a challenge to my fledgling coding skills to see if I could add this functionality myself.

Now at this point I have to emphasise that I am in awe of the coding skills of Rene and the other coders who make this forum what it is. So, Rene, I fully understand that this is your thread and your indicator so please feel free to delete this post and keep the indi how you intended it. If you actually think it's a worthwhile addition and you want to incorporate it at some point in the future then hopefully I've saved you a little time. It's only code that would take you minutes to knock out but I thought it best to share it rather than ask you to do it.
The easiest way for you to accomplish what you want is to right-click in the Account History tab and select the Custom Period appropriately (eg. select 'Today'). TradeReport can not report on trades that are not listed in the 'Account History'.
Bruster400
Trader
Posts: 192
Joined: Tue Sep 24, 2013 3:19 pm

TradeReport

Post by Bruster400 »

renexxxx » Thu Mar 17, 2016 8:21 pm wrote: The easiest way for you to accomplish what you want is to right-click in the Account History tab and select the Custom Period appropriately (eg. select 'Today'). TradeReport can not report on trades that are not listed in the 'Account History'.
Hi Renexxxx,

Thanks for the quick response! Yes, I know that I could change the history tab but I like to have two instances of your indi running, this month and this week and this just stops me having to switch the history between the two to look at where I'm up to. It was as much about challenging my coding and helping out on a request for a change as it was a genuine addition that most people would want. Just trying to contribute where I can.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

TradeReport

Post by renexxxx »

Bruster400 » Fri Mar 18, 2016 5:39 am wrote: Hi Renexxxx,

Thanks for the quick response! Yes, I know that I could change the history tab but I like to have two instances of your indi running, this month and this week and this just stops me having to switch the history between the two to look at where I'm up to. It was as much about challenging my coding and helping out on a request for a change as it was a genuine addition that most people would want. Just trying to contribute where I can.
I hope that you are aware that you can not run two instances of TradeReport on the same chart, so this would mean that you have two charts running with TradeReport, each with a different date range. By the way, it is not impossible to alter TradeReport so that multiple instances can be run on one chart, but it means giving it x and y offset parameters, making the screen object names unique for each instance and modifying the OnChartEvent() function such that the left mouse click event is mapped to the correct table. There are other things on my mind right now, so I am not going there.

You have not totally convinced me that "most people would want", the date choice selection option to include Today, This Week's and This Month's trades (I don't have that requirement myself for that matter), but I have added the code changes to that effect. Update is in Post 1.
Bruster400
Trader
Posts: 192
Joined: Tue Sep 24, 2013 3:19 pm

TradeReport

Post by Bruster400 »

Renexxxx,

Thank you again for your quick response and for making these changes - I genuinely wasn't trying to make work for you, so the fact that you've done it makes it all the more generous of you. Just another example of the amazing contribution you make.

Thank you

Bruster
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

TradeReport

Post by MurphyMan »

I have been out a lot the last few months and I'm quite late to this party. I just wanted to thank you Renexxxx for this handy tool. You are a gem!

:!!: :!!: :!!: :!!: :!!:
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

TradeReport

Post by renexxxx »

There was a bug that prevented you from selecting other screen objects (such as horizontal lines) when TradeReport was running on the chart, as the OnChartEvent() in trade report would capture the mouse-click to these other objects. This has now been fixed.

Update is in Post 1
Post Reply

Return to “Data analysis tools”