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
Calculating average trade results in pip gives you another good and easily interpretable measure. You immediately see the probable influence of slippage/commissions/swap on your results. If your average trade gains less than 5 pip the probability is high that most of your theoretical gains will be eaten away by trading costs.
Another option in the calulation of the sortino ratio is to not skip positive results but instead skip all results better then the mean. This way your sortino ratio describes all trades worse then the average trade which may make sense, too. It depends on what you prefer/want to know with your stats...
Wow! Thank you so so so much for your quality post and time. You have by far provided the most quality and information to me than any other member on this forum and this is not an exaggeration. I wish there were people like you here. Thank you for helping out a fellow quant.
@alphatrading
Anyway, the code you returned gives me a few errors that I cant seem to fix. Maybe they will pop up for you if you compile your code. This is what I have so far:
Im 100% sure I have the last bit wrong but feel free to correct me, however, the problems are
Im 100% sure I have the last bit wrong but feel free to correct me, however, the problems are...
I forgot to compile with "#property strict". Fixed. And I changed the calculation of the standard deviation from the full population to a sample.
The 1 is caused by this part:
iStdDevOnArray() can be considered undocumented. In the last 10 years I never found a working example here or anywhere at the web. So until some person smarter then me comes up with the right syntax I calculate the std-dev manually if I need it:
Essentially this is the manual way to calculate std-dev. You have to adapt the iMAOnArray() part to your profit series.
I decided to study more on Sortino. And I wrote a code to calculate deal by deal, but the core calculation is done by this:
The concept of Target Upside Deviation (TUD) is mine. I do a lot of High Frequency Trading and Scalping in daytrading, but performance indicators such as Sharpe and Sortino applies a little bit different. I am trying to develop a non-parametric indicator that applies to every trade, so I can evaluate better my EA. My target is to skew my EA results as much as possible from normal distribution. To profit direction, of course :)
Good evening people,
who can translate this o MT5??