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

Go to the source code of this file.

Functions

static double update (WU_SMA ma, double value)
static void delete (WU_SMA ma)
WU_SMA wu_sma_new (int window_size)
 Creates a new WU_SMA (Simple Moving Average) indicator with the specified window size.

Function Documentation

◆ delete()

void delete ( WU_SMA ma)
static

Definition at line 17 of file sma.c.

◆ update()

double update ( WU_SMA ma,
double value )
static

Definition at line 4 of file sma.c.

◆ wu_sma_new()

WU_SMA wu_sma_new ( int window_size)

Creates a new WU_SMA (Simple Moving Average) indicator with the specified window size.

Definition at line 22 of file sma.c.