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

TradeChart
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4389
Page 6 of 9
Author:  Gogetta247 [ Tue Jul 04, 2017 11:22 pm ]
Post subject:  TradeChart

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 )
Author:  tomele [ Tue Jul 04, 2017 11:29 pm ]
Post subject:  TradeChart

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.
Author:  SteveHopwood [ Tue Jul 04, 2017 11:45 pm ]
Post subject:  TradeChart

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.
Author:  Wavegarrick [ Fri Jul 21, 2017 4:33 pm ]
Post subject:  TradeChart

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.
Author:  DigitalCrypto [ Wed Aug 16, 2017 4:40 pm ]
Post subject:  TradeChart

Thank you for the wonderful indicators Rene

I really like the ability to collapse it to a small "Info" tag.
Author:  murysco [ Mon Feb 12, 2018 1:29 am ]
Post subject:  TradeChart

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.
Author:  renexxxx [ Mon Feb 12, 2018 7:43 am ]
Post subject:  TradeChart

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.
Author:  murysco [ Mon Feb 12, 2018 7:59 am ]
Post subject:  TradeChart

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
Author:  SteveHopwood [ Sat Feb 24, 2018 10:42 pm ]
Post subject:  TradeChart

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:
Author:  Silicus [ Mon Jul 02, 2018 8:24 pm ]
Post subject:  TradeChart

Thank you Reene for this wonderful tool and for making it available to us!
Very much appreciated!
All times are UTC Page 6 of 9