It must be quite simple but i didn't manage to do it
How can I calculate the daily returns for the last X days?
I got
context.securities = symbols('AAPL', 'GOOG')
hist = history(80, '1d','close_price')
How can I get the average daily returns of the last 60 days in those securities?
And the average daily std?
Thanks!