(Profit per Month – risk free Rate of Return) / standard deviation of monthly profits
So my first question would be what if my range of data is smaller than a month? It seems like I still get a sharp value even though the standard deviation could only get 1 data point, in which case it couldn't be calculated.
My second question is regarding the calculation. I wanted to try it myself and I used the data which the Example Moving Average Strategy that is built in provides.
when using the "Net Profit"-values of each Month and and the Profit per Month result I get
(using python):
-1082.57 / np.std([1475.46, 3855.48, 1337.71, 3464.98, -10528.74, -6064.82]) = -0.20247716864741613
the Sharp Ratio which the Strategy Analyzer prints is -0.40. Why are they not the same, I used the calculation from the docs?
What am I missing here?
Screenshot with all the results + calculation:

Comment