Meanness aside, I understand that weighting results by the inverse of trade duration is probably beneficial if such Sharp calculation is used as the training objective. However, it can also produce negative numbers on a good, profit-positive system which "stops losses short and lets profits run".
What was your thinking when you preferred "per-bar" vs "per-trade" calculation?
Does Zorro use "per-bar" results also in its OptimalF calcs? If yes, did this prove to produce better results than with "per-trade" results?
Why not also report "conventional" measures (for the unsuspecting users)?
Re: Sharp and Kelly calculations
[Re: Zheka]
#477184 05/28/1916:0105/28/1916:01
I'm not sure what a Sharp is, but suppose you mean the Sharpe ratio. It is no training objective and not "per-trade". You can look up the Sharpe formula in Wikipedia and the OptimalF formula in Ralph Vince's paper. It's there better explained than I could do it. Both are absolutely "conventional" and used in many trading platforms. Read their descriptions and if then still something is unclear, just ask.
Re: Sharp and Kelly calculations
[Re: jcl]
#477185 05/28/1918:2105/28/1918:21
I did not know about Wikipedia, thanks for the advice.
There are different ways to calculate "returns" in the formula. Industry norm is to take monthly returns,but some take daily returns, and some argue that for an active on/off strategy (rather than a "near 100% in the market" portfolio of stocks- which was the original basis for Sharp's work)- it makes more sense to calculate it off trade results.
Does Zorro use a "bar" as a unit of time and "bar returns" in SR calculations? Does it take all bars or only those with non-zero returns/i.e.during trades?
Does Zorro calculate OptimalF off trade results as per Vince?
Re: Sharp and Kelly calculations
[Re: Zheka]
#477189 05/29/1907:4005/29/1907:40
Zorro uses just the published algorithms. I know no other ways to calculate Sharpe ratio and OptimalF, so I can't comment on that.
I don't think that a "industry norm to take monthly returns" exists. For the Sharpe ratio you simply use the returns that you have. Trading systems use the bar returns when the system is in the market. Other bars do not contribute. OptimalF is trade result based.
Re: Sharp and Kelly calculations
[Re: jcl]
#477197 05/29/1920:2005/29/1920:20
All Sharpe calculations I have seen calculate it over time, not based on trades. They have all considered ALL bars, not just in-the-market bars. You could certainly do per-trade or in-the-market only, but that would give you a somewhat skewed indication. E.g. a system that traded once every 5 years with a 100% win rate would have a very high (infinite?) Sharpe with per-trade/ITM calculations, but significantly lower with all-bar calculations. The per-trade/ITM model would have zero Stdev, while the all-bar calc would have higher Stdev and lower per-period returns.
Basic Sharpe uses annual returns, but you can use any timeframe. You simply scale the value so the result is comparable to the standard annual Sharpe: multiply the Return / Stdev calculation times sqrt(barsperyear). So for monthly returns, multiply times sqrt(12); for daily returns, multiply times sqrt(252).