MACDEXT
Type:
macdext• Category:indicators
Description
MACD with controllable MA types
Parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
dataExp | string | prices data | no | |
price | string | Price field to use to calculate MACDEXT | no | |
fastperiod | number | Fast period for MACDEXT calculation | no | 12 |
fastmatype | number | Fast MA type for MACDEXT calculation | no | 0 |
slowperiod | number | Slow period for MACDEXT calculation | no | 26 |
slowmatype | number | Slow MA type for MACDEXT calculation | no | 0 |
signalperiod | number | Signal period for MACDEXT calculation | no | 9 |
signalmatype | number | Signal MA type for MACDEXT calculation | no | 0 |
Help
MACDEXT
Description
The MACDEXT worker is an indicator used in financial analysis to calculate the Moving Average Convergence Divergence (MACD) with controllable Moving Average (MA) types. This indicator provides a more flexible and customizable approach to traditional MACD calculations.
What does this worker do?
The MACDEXT worker calculates the MACD with the following customizable parameters:
price: The price field to use for MACDEXT calculationfastperiod: The fast period for MACDEXT calculationfastmatype: The fast MA type for MACDEXT calculationslowperiod: The slow period for MACDEXT calculationslowmatype: The slow MA type for MACDEXT calculationsignalperiod: The signal period for MACDEXT calculationsignalmatype: The signal MA type for MACDEXT calculation
How to interpret the results
The MACDEXT indicator generates three main lines:
- The MACD line: The difference between the fast and slow EMA (Exponential Moving Average) lines
- The Signal line: A moving average of the MACD line
- The Histogram: The difference between the MACD line and the Signal line
Interpretation:
- When the MACD line crosses above the Signal line, it's a bullish signal (buy).
- When the MACD line crosses below the Signal line, it's a bearish signal (sell).
- The Histogram represents the momentum of the MACD line. A growing Histogram indicates increasing momentum, while a shrinking Histogram indicates decreasing momentum.
Usage
To use the MACDEXT worker, simply provide the required parameters:
- dataExp: prices data
- price: Price field to use to calculate MACDEXT
- fastperiod: Fast period for MACDEXT calculation
- fastmatype: Fast MA type for MACDEXT calculation
- slowperiod: Slow period for MACDEXT calculation
- slowmatype: Slow MA type for MACDEXT calculation
- signalperiod: Signal period for MACDEXT calculation
- signalmatype: Signal MA type for MACDEXT calculation
Visualizing the MACDEXT Indicator
For a better understanding of how to use the MACDEXT indicator, refer to the following images:
Full MACDEXT Indicator Demo
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)
Short MACDEXT Indicator Demo
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)
Additional Information
The MACD indicator, developed by Gerald Appel in the late 1970s, is a popular technical analysis tool used to identify trends and predict price movements. By combining two moving averages, the MACD indicator provides a unique perspective on market momentum and potential buy/sell signals. The MACDEXT worker offers a customizable extension of this classic indicator, allowing users to experiment with different MA types and periods to suit their trading strategies.