added periods variable to functions asd, sharpe