MACD with controllable MA type
MACDEXT is an extended version of MACD allowing for different MA types.
Method
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source | pd.Series | Input data series | - |
fastperiod | int | Fast period for the indicator | 12 |
fastmatype | int | Fast Moving Average type | 0 |
slowperiod | int | Slow period for the indicator | 26 |
slowmatype | int | Slow Moving Average type | 0 |
signalperiod | int | Signal period for the indicator | 9 |
signalmatype | int | Signal Moving Average type | 0 |
Outputs
The outputs are returned as a tuple of objects. Make sure to unpack them as shown in the example usage.
Output | Type |
---|---|
macd | np.ndarray |
macdsignal | np.ndarray |
macdhist | np.ndarray |