Macd
BaseSeriesIndicator
The
is a momentum indicator that shows the relationship between two
s of prices. The Macd Line is calculated as the difference between a fast and a slow Ema, and the Signal Line is an Ema of the Macd Line itself. The Macd helps signal the start of new trends and potential reversals, with high values typically indicating overbought conditions and low values suggesting oversold ones. Divergence between the Macd and price action is also a key signal of the end of a current trend, particularly when Macd is at extremely high or low values.
- A buy signal is indicated when the Macd Line crosses above the Signal Line.
- A sell signal is suggested when the Macd Line crosses below the Signal Line.
- Additionally, it is common to consider buying or selling when the Macd crosses above or below the zero line. The Macd is calculated using the following formulas:
Macd = Ema(Price, fastPeriod) - Ema(Price, slowPeriod)
Signal = Ema(Macd, signalPeriod)
Constructor
Default values fastPeriod = 12, slowPeriod = 26, signalPeriod = 9 |
Presentation
|
Properties
Name | Type | Description |
---|---|---|
historyCapacity inherited from
| number | The maximum history held by the indicator. As new data comes in only this many points are kept. |
historyCount inherited from
| number | The number of historical points currently held by the indicator. Will never be larger than |
last inherited from
| T | |
values inherited from
| T[] |
Methods
add()inherited from
| ||||||
---|---|---|---|---|---|---|
No documentation has been provided. | ||||||
Presentation
| ||||||
Parameters
Returns
|