metric_sharpe function

Calculate Sharpe Ratio with Frequency Detection