Skip to main content

MACDEXT

Type: macdext • Category: indicators

Description

MACD with controllable MA types

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringprices datano
pricestringPrice field to use to calculate MACDEXTno
fastperiodnumberFast period for MACDEXT calculationno12
fastmatypenumberFast MA type for MACDEXT calculationno0
slowperiodnumberSlow period for MACDEXT calculationno26
slowmatypenumberSlow MA type for MACDEXT calculationno0
signalperiodnumberSignal period for MACDEXT calculationno9
signalmatypenumberSignal MA type for MACDEXT calculationno0

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 calculation
  • fastperiod: The fast period for MACDEXT calculation
  • fastmatype: The fast MA type for MACDEXT calculation
  • slowperiod: The slow period for MACDEXT calculation
  • slowmatype: The slow MA type for MACDEXT calculation
  • signalperiod: The signal period for MACDEXT calculation
  • signalmatype: 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

[![Full MACDEXT Indicator Demo](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)

Short MACDEXT Indicator Demo

[![Short MACDEXT Indicator Demo](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)](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.