TradeChart

Thingies such as TradeReport and TradeChart
Post Reply
Gogetta247
Posts: 5
Joined: Sun Apr 23, 2017 10:36 am

TradeChart

Post by Gogetta247 »

Awesome tool Renexx..You are indeed a very gifted and generous coder..Love your trade report and trade chart but unfortunately when I load TradeChart3 onto 1minute chart in attempt to check my drawdown history , it freezes my Empty4 platform..This has been happening for a while..How do I fix this?I will be glad if you can help?Thank you and I wish you green pips good Sir..
renexxxx » Sat Aug 15, 2015 8:53 am wrote:I have created a graphical counter part for the TradeReport indicator. It has similar parameters as TradeReport, but rather than summing up the trade figures, it tries to figure out for an historical candle what the equity and balance were at that time. These figures are approximated, by determining which trades were open at/during that candle, and comparing the open symbol's typical price with their open price. This together with the lot size can be converted to a dollar figure. TradeChart plots these figures on a sub chart, together with some other information, like max equity, min equity and draw down etc.. Here is an example of TradeChart together with TradeReport:


The question that this indicator tries to answer is, "What has been the effect of trading your selected system to your account?" With the parameters MagicNumber, CommentFilter, SymbolFilter and StartDate you can select a sub set of your trades (open and closed), that represent the trades of your EA or strategy you want to analyse.

The indicator is attached below. You will need to allow DLL imports, as TradeChart uses user32.dll, to select "All History" in the History-tab.
I have not included the .mq4-file, not because it is top-secret, but because the code uses an #include file and I want to save myself from a lot of misery of telling people how to compile the code.

Hope this will be of use for someone.

Hint: Sometimes it seems as if the figures don't add up. Play with the time frames on your chart, to force Empty4 to refresh the price data.

Update: The information panel has been extended to also display the report parameters (Start Date, Magic Number etc ...) As the extended panel was/is obscuring most of the chart, I added a close button, so that you can flip the panel away. See:
There is a weird bug (or undocumented feature) in Empty4, such that if there is no indicator buffer line displayed (eg. due to a set of report parameters that do not result in any trade selection), mouse clicks on screen objects are not registered. To be more precise: they are registered, but the sparam (in OnChartEvent) is blank. In layman terms: if there is no line on the screen, the close button (on the info panel) doesn't work. Go figure.

Update 2016-09-05: (1) Fixed startup bug ... see this post. (2) Added the CurrencyFilter parameter à la TradeReport.

Update: 2016-09-07: Made a significant performance improvement, by 'sucking in' all the orders into an internal structure and sorting them in chronological order, before calculating the balance and UPL for each past candle.

Update: 2016-10-28: Removed a print statement that was left in by mistake for debugging. Thanks Thomas (tomele) for letting me know!

Update: 2017-05-07: A new version (TradeChart3) has been attached, that has improvements to the info-panel. See this Post for more information.

Update: 2017-05-31: There are two small changes:
  • It now takes into account the AccountCredit() -- if your br0ker uses this --, to calculate the Account Balance
  • The applied price type it uses to calculate the UPL for a candle can now be selected from a drop box. The default value is "Typical Price" (i.e. (High + Low + Close)/3 )
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

TradeChart

Post by tomele »

Gogetta247 » 05 Jul 2017, 00:22 wrote:Awesome tool Renexx..You are indeed a very gifted and generous coder..Love your trade report and trade chart but unfortunately when I load TradeChart3 onto 1minute chart in attempt to check my drawdown history , it freezes my Empty4 platform..This has been happening for a while..How do I fix this?I will be glad if you can help?Thank you and I wish you green pips good Sir..
Your computer might be underpowered to calculate it on a 1 Minute basis. Try to load it on a 1 hour chart.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
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.

TradeChart

Post by SteveHopwood »

Gogetta247 » Tue Jul 04, 2017 11:22 pm wrote:Awesome tool Renexx..You are indeed a very gifted and generous coder..Love your trade report and trade chart but unfortunately when I load TradeChart3 onto 1minute chart in attempt to check my drawdown history , it freezes my Empty4 platform..This has been happening for a while..How do I fix this?I will be glad if you can help?Thank you and I wish you green pips good Sir..
Try putting it on a different time frame, you cretin. Or working out what else it is you were doing wrong.

You are consigned to the dustbin of dimwits unable to do anything other than read posts and download attachments. I did warn you that dimwits are unwelcome at SHF in my Welcome message to you. Your fault that you chose to ignore it.
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.
User avatar
Wavegarrick
Trader
Posts: 1172
Joined: Sun Dec 30, 2012 11:21 am
Location: South Africa

TradeChart

Post by Wavegarrick »

Gogetta247 wrote:Thanks Steve..I didntt mean to bug you LOL..I changed the Max bars in chart to 1000 and it worked..Thanks and sorry i bugged you lol..
Be careful with the Lol connotations, you might just pee some people off here including myself.
DigitalCrypto
Trader
Posts: 237
Joined: Tue Feb 24, 2015 4:38 am

TradeChart

Post by DigitalCrypto »

Thank you for the wonderful indicators Rene

I really like the ability to collapse it to a small "Info" tag.
murysco
Trader
Posts: 17
Joined: Fri Feb 26, 2016 10:32 pm

TradeChart

Post by murysco »

Hello Renee,

Thank you so much for this great tool. It is indeed being very useful.

Is it possible to have it provide more information like some of the ones in the attached screenshot? Just the ones in the red-angled area by the left side.
FULL REPORTS.png
If not all, the possible ones can be selected from the following to complement what we already have in the indicator :

example(USD)
Free margin:
Margin in use:
Margin level:-
Monthly return:-%
Weekly return:%
Trade win %:%
Profit factor:
Pips Gained/Lost:-
Risk/reward ratio:-0.78
Worst day:
Worst week:
Worst month:
Risk of ruin: %
Avg result:-1.48
Avg win:+7.92
Avg loss:-38.26
Account type: Demo/Live

Cheers.
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

TradeChart

Post by renexxxx »

murysco » Mon Feb 12, 2018 11:29 am wrote: Is it possible to have it provide more information like some of the ones in the attached screenshot? Just the ones in the red-angled area by the left side.
Sorry, I have too much work on at the moment.
murysco
Trader
Posts: 17
Joined: Fri Feb 26, 2016 10:32 pm

TradeChart

Post by murysco »

renexxxx » Mon Feb 12, 2018 8:43 am wrote:
Sorry, I have too much work on at the moment.
Its ok. You've done a good job already.

Thanks
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.

TradeChart

Post by SteveHopwood »

I see that Rene has done some tidying up tonight. Given the lamentable standard of the posts he deleted, I am not surprised. Assume you are an idiot if yours was one of those he deleted. Do not even bother to have bad dreams about arguing with me here. You will lose.

Guys, Rene is fantastically clever. He is a stunning coder. He is enormously kind and helpful; I have learned much from him. Mind, his patience can be broken. Bear in mind that he is a moderator here with the power to delete your account.

Do him the honour of contributing intelligently. Remember the SHF ethos: say nothing if you have nothing useful to say.

:xm: :rocket:
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.
Silicus
Posts: 7
Joined: Sat Dec 10, 2011 11:18 pm

TradeChart

Post by Silicus »

Thank you Reene for this wonderful tool and for making it available to us!
Very much appreciated!
Post Reply

Return to “Data analysis tools”