#include <stdlib.h>
#include "wu.h"
Go to the source code of this file.
|
| 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.
|
◆ 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.