Skip to main content

MACDFIX

Type: macdfix • Category: indicators

Description

MACD Fix 12/26

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringPrice listno
signalperiodnumberno9

Help

MACDFIX

Overview

The MACDFIX worker is an indicator used in financial markets, specifically designed to calculate the Moving Average Convergence Divergence (MACD) with a fixed parameter setup of 12 and 26 periods for the short and long-term moving averages, respectively.

Description

The MACDFIX worker calculates the MACD, a trend-following momentum indicator that shows the relationship between two moving averages (MA) of a security’s price. The MACD is calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA. A signal line, which is a 9-period EMA of the MACD line itself, is also plotted alongside the MACD line.

What does this worker do?

This worker computes the MACD line and its signal line based on the provided price data. It helps traders and analysts identify potential buy or sell signals, trends, and momentum in the financial markets.

How to interpret the results?

  • When the MACD line crosses above the signal line, it can be considered a bullish signal (buy).
  • When the MACD line crosses below the signal line, it can be considered a bearish signal (sell).
  • The MACD line crossing above or below the zero line can also indicate changes in momentum and trend.

Parameters

The MACDFIX worker accepts the following parameters:

JSON Schema

{
"dataExp": {
"type": "string",
"description": "Price list"
},
"signalperiod": {
"type": "number",
"default": 9
}
}

Parameters List

  • dataExp:

    • Type: string
    • Description: The price list data expression. This should be a string representing the source of price data.
  • signalperiod:

    • Type: number
    • Default: 9
    • Description: The period used for the signal line (a 9-period EMA of the MACD line). While the default is 9, users can adjust this parameter according to their trading strategies.

By adjusting the parameters, especially signalperiod, users can experiment with different strategies to suit their trading needs. However, the core MACD parameters (12 and 26 periods for the short and long-term MAs) are fixed in this MACDFIX worker.