tzutrader
A composable C++ backtesting library for trading strategies (experimental)
Loading...
Searching...
No Matches
tzu::MACDResult Struct Reference

#include <indicators.h>

Public Attributes

double macd
double signal
double histogram

Detailed Description

Moving Average Convergence Divergence Result (MACDResult)

Holds the current values of the MACD line, signal line, and histogram. The MACD line is the difference between the short-term EMA and the long-term EMA. The signal line is the EMA of the MACD line, and the histogram is the difference between the MACD line and the signal line.

Member Data Documentation

◆ histogram

double tzu::MACDResult::histogram

◆ macd

double tzu::MACDResult::macd

◆ signal

double tzu::MACDResult::signal

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