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

Go to the source code of this file.

Functions

static double update (WU_EMA ema, double value)
static void delete (WU_EMA ema)
WU_EMA wu_ema_new (int period, double smoothing)
 Creates a new WU_EMA (Exponential Moving Average) indicator with the specified period and smoothing factor.

Function Documentation

◆ delete()

void delete ( WU_EMA ema)
static

Definition at line 23 of file ema.c.

◆ update()

double update ( WU_EMA ema,
double value )
static

Definition at line 4 of file ema.c.

◆ wu_ema_new()

WU_EMA wu_ema_new ( int window_size,
double smoothing )

Creates a new WU_EMA (Exponential Moving Average) indicator with the specified period and smoothing factor.

Usually, 2.0 is used as the smoothing factor.

Definition at line 27 of file ema.c.