gatornuke:
You will find code to that here -> https://www.mql5.com/en/articles/1403.
Is there any function which returns the overall average win amount, average loss amount, and winning/losing trade fraction? [...]
Ok, it seems that i can do an orderselect loop by MODE_HISTORY and tally up and average the orderprofits and losses. I can put a counter in there to tally the number of wins and get the winning percentage that way.
This should work. Thanks.
gatornuke #:
Hey gatotnuke, came across this article in hopes of finding the same thing to test my consistency. Can you share this EA do you have mt5 version.
Ok, it seems that i can do an orderselect loop by MODE_HISTORY and tally up and average the orderprofits and losses. I can put a counter in there to tally the number of wins and get the winning percentage that way.
This should work. Thanks.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is there any function which returns the overall average win amount, average loss amount, and winning/losing trade fraction? I'm thinking about implementing a kelly subroutine to handle position sizing and would like to make it fully automatic (to be turned on by user after sufficient history is collected).