It is a question regarding programming as well as finance. I have been trying to calculate the sharpe ratio of a strategy independently.
First, can you please provide the formula used by the Strategy Analyzer to calculate the standard deviation for the Sharpe ratio.
The reason I ask is because it seems to me that when the system calculates the standard deviation, months with no trades are not included, instead of treating them as having zero profit for the month. This can cause significant deviation from the theoretical value when a strategy only operates on a few months in a year.
Second, if it is the case, is it a desirable and deliberate design by NinjaTrader's developers? What is the purpose of that?
Thanks.
Comment