--- title: hma description: Learn about the Hull Moving Average (HMA), a responsive and smooth moving average indicator. Understand how to use the HMA, its parameters, and see examples using the OBBject library. keywords: - Hull Moving Average - moving average - lag - smoothing - data - target column - index column - length - offset - OBBject - examples - openbb - equity - price - historical - symbol - start date - provider --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; The Hull Moving Average. Solves the age old dilemma of making a moving average more responsive to current price activity whilst maintaining curve smoothness. In fact the HMA almost eliminates lag altogether and manages to improve smoothing at the same time. Parameters ---------- data : List[Data] List of data to be used for the calculation. target : str Target column name. index : str, optional Index column name to use with `data`, by default "date". length : int, optional Number of periods for the HMA, by default 50. offset : int, optional Offset of the HMA, by default 0. Returns ------- OBBject[List[Data]] The calculated data. Examples -------- ```python from openbb import obb stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp") hma_data = obb.technical.hma(data=stock_data.results,target="close",length=50,offset=0) ``` --- ## Parameters This function does not take standardized parameters. --- ## Returns This function does not return a standardized model ---