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

MovingAverage is a simple moving average indicator that calculates the average of the last N values, where N is the window size. More...

#include <indicators.h>

Data Fields

double(* update )(struct WU_SMA_ *self, double value)
void(* delete )(struct WU_SMA_ *self)
double value
double * prev_values
int window_size
int pos
int len
double sum

Detailed Description

MovingAverage is a simple moving average indicator that calculates the average of the last N values, where N is the window size.

Definition at line 62 of file indicators.h.

Field Documentation

◆ delete

void(* WU_SMA::delete) (struct WU_SMA_ *self)

Definition at line 64 of file indicators.h.

◆ len

int WU_SMA::len

Definition at line 69 of file indicators.h.

◆ pos

int WU_SMA::pos

Definition at line 68 of file indicators.h.

◆ prev_values

double* WU_SMA::prev_values

Definition at line 66 of file indicators.h.

◆ sum

double WU_SMA::sum

Definition at line 70 of file indicators.h.

◆ update

double(* WU_SMA::update) (struct WU_SMA_ *self, double value)

Definition at line 63 of file indicators.h.

◆ value

double WU_SMA::value

Definition at line 65 of file indicators.h.

◆ window_size

int WU_SMA::window_size

Definition at line 67 of file indicators.h.


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