In avellaneda-stoikov, https://blog.hummingbot.org/2021-04-avellaneda-stoikov-market-making-strategy/, σ^2 is an input for both the reservationPrice and optimalSpread. Hummingbot also mentions the market volatility in their docs.
However, when I look into the GitHub code in Hummingbot, they do not square the volatility that is determined by the following formula:
def _indicator_calculation(self) -> float:
np_sampling_buffer = self._sampling_buffer.get_as_numpy_array()
vol = np.sqrt(np.sum(np.square(np.diff(np_sampling_buffer))) / np_sampling_buffer.size)
return vol
This is the standard deviation σ, not σ^2. Any explanations for this?
Research in multiple other papers about estimating historical volatility, but it ended up all with the same confusion.