WU Trading Library 0.2.0
A backtesting and trading strategy library
Loading...
Searching...
No Matches
WU_MACD Struct Reference

The WU_MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that shows the relationship between two moving averages of a security's price. More...

#include <indicators.h>

Data Fields

WU_MACDResult(* update )(struct WU_MACD_ *self, double value)
void(* delete )(struct WU_MACD_ *self)
WU_MACDResult value
WU_EMA ema_short
WU_EMA ema_long
WU_EMA signal_line
int len
int start

Detailed Description

The WU_MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that shows the relationship between two moving averages of a security's price.

The MACD is calculated by subtracting the long-term EMA from the short-term EMA. A signal line, which is an EMA of the MACD, is then plotted on top of the MACD to identify buy and sell signals. The histogram represents the difference between the MACD and the signal line, providing a visual representation of the momentum of the price movement.

Definition at line 198 of file indicators.h.

Field Documentation

◆ delete

void(* WU_MACD::delete) (struct WU_MACD_ *self)

Definition at line 200 of file indicators.h.

◆ ema_long

WU_EMA WU_MACD::ema_long

Definition at line 203 of file indicators.h.

◆ ema_short

WU_EMA WU_MACD::ema_short

Definition at line 202 of file indicators.h.

◆ len

int WU_MACD::len

Definition at line 205 of file indicators.h.

◆ signal_line

WU_EMA WU_MACD::signal_line

Definition at line 204 of file indicators.h.

◆ start

int WU_MACD::start

Definition at line 206 of file indicators.h.

◆ update

WU_MACDResult(* WU_MACD::update) (struct WU_MACD_ *self, double value)

Definition at line 199 of file indicators.h.

◆ value

WU_MACDResult WU_MACD::value

Definition at line 201 of file indicators.h.


The documentation for this struct was generated from the following file: