calculate Volatility
Calculates the price volatility for a list of prices.
Volatility is calculated as the coefficient of variation, which is the ratio of the standard deviation to the average price.
Return
The calculated price volatility as a relative value, or 0.0 if the average price is zero.
Parameters
prices
The list of prices to analyze.