WU Trading Library 0.2.0
A backtesting and trading strategy library
Loading...
Searching...
No Matches
macd.c File Reference
#include <stdlib.h>
#include "wu.h"

Go to the source code of this file.

Functions

static WU_MACDResult macd_update (WU_MACD macd, double value)
static void macd_free (WU_MACD macd)
WU_MACD wu_macd_new (int short_window, int long_window, int signal_window, double smoothing)
 Creates a new WU_MACD (Moving Average Convergence Divergence) indicator with the specified short and long window sizes, and signal line window size.

Function Documentation

◆ macd_free()

void macd_free ( WU_MACD macd)
static

Definition at line 20 of file macd.c.

◆ macd_update()

WU_MACDResult macd_update ( WU_MACD macd,
double value )
static

Definition at line 4 of file macd.c.

◆ wu_macd_new()

WU_MACD wu_macd_new ( int short_window,
int long_window,
int signal_window,
double smoothing )

Creates a new WU_MACD (Moving Average Convergence Divergence) indicator with the specified short and long window sizes, and signal line window size.

Definition at line 27 of file macd.c.