For each asset in my universe, I would like to calculate the STD of returns, over the last 100days, in order to make a comparison between assets.

I see the indicator STD seems to calculate the STD of Prices.

Is there an easy way to calculate the Standard Deviation of Returns (I believe we should be using Log Returns too, not simple returns). The implementation below does not work, but I believe we should be doing something like this?