MACD
#
MACD
#
MACD(
fast_period: int,
slow_period: int,
signal_period: int,
input_values: List[float] = None,
input_indicator: Indicator = None,
input_modifier: InputModifierType = None,
ma_type: MAType = MAType.EMA,
input_sampling: SamplingPeriodType = None,
)
Bases: Indicator
Moving Average Convergence Divergence.
Input type: float
Output type: MACDVal
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fast_period |
int
|
Fast moving average period. |
required |
slow_period |
int
|
Slow moving average period. |
required |
signal_period |
int
|
Signal line moving average period. |
required |
input_values |
List[float]
|
List of input values. |
None
|
input_indicator |
Indicator
|
Input indicator. |
None
|
input_modifier |
InputModifierType
|
Input modifier. |
None
|
ma_type |
MAType
|
Moving average type. |
EMA
|
input_sampling |
SamplingPeriodType
|
Input sampling type. |
None
|