MESA Adaptive Moving Average
MAMA is an adaptive moving average designed to capture trends in varying market conditions.
Method
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source | pd.Series | Input data series | - |
fastlimit | float | Fast limit for the indicator | 0 |
slowlimit | float | Slow limit for the indicator | 0 |
Outputs
The outputs are returned as a tuple of objects. Make sure to unpack them as shown in the example usage.
Output | Type |
---|---|
mama | np.ndarray |
fama | np.ndarray |