Quote from vita:
Sharpe ratio calculation can be really tricky. This is one general way I'd do it.
Depending on your preferred time frame, record your daily, weekly, or monthly returns. Let's assume you are a day trader and have logged your daily returns for many months/years:
1) plot a histogram of you daily returns
2) See if the daily histogram of your returns looks like a Normal Distribution. At the very least, it should have only one mode and not many fat tail returns. If this was not the case, Stop! You cannot calculate Sharpe ratio based on daily returns. One way to solve this to plot a histogram of weekly returns and check if that looks like a Normal distribution.
3) If your daily histogram has one mode and looks Normal, you can estimate the Sharpe Ratio as follows
Annualized Sharpe=(mean(R)*252-Rbm)/(std(R)*sqrt(252))
where R is the series of your DAILY returns, and Rbm is the ANNUAL Return of a benchmark, e.g. risk free USTreasury return. The number 252 is the number of trading days per year.
If you are a longterm trader and only consider weekly returns use the same procedure and formula but replace 252 by 50 where R becomes your weekly returns.
I hope this helps.