[docs]defset_periods_per_year(self,count:int):"""Sets the number of periods per year for the Historical Volatility Index calculation. Args: count (int): The number of periods per year (e.g., 252 for trading days in a year). """self.instance.send(self.id,'setPeriodsPerYear',{'periodsPerYear':int(count)})returnself
[docs]defset_standard_deviations(self,deviations:int|float):"""Sets the number of standard deviations for the Historical Volatility Index. Args: deviations (int | float): The number of standard deviations. """self.instance.send(self.id,'setStandardDeviations',{'standardDeviations':deviations})returnself
[docs]defset_use_moving_average(self,use_moving_average:bool):"""Enables or disables the use of a moving average for the Historical Volatility Index. Args: use_moving_average (bool): True to use a moving average, False otherwise. """self.instance.send(self.id,'setUseMovingAverage',{'useMovingAverage':use_moving_average})returnself