def sharpe_ratio(returns, periods=252):
 return ((np.sqrt(periods) * np.mean(returns)) / np.std(returns))

def sharpe_ratio ( returns , periods = 252 ) : return ( ( np . sqrt ( periods ) * np . mean ( returns ) ) / np . std ( returns ) )
create the sharpe ratio for the strategy .