41#define wu_indicator_update(indicator, value) \
42 (indicator)->update((indicator), (value))
49#define wu_indicator_get(indicator) ((indicator)->value)
56#define wu_indicator_delete(indicator) (indicator)->delete((indicator))
100WU_EMA
wu_ema_new(
int window_size,
double smoothing);
182typedef struct MACDResult_ {
214WU_MACD
wu_macd_new(
int short_window,
int long_window,
int signal_window,
WU_Var wu_var_new(int dof)
Createas a new variance indicator.
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 f...
WU_StDev wu_stdev_new(int dof)
Creates a new standard deviation indicator.
WU_Downside wu_downside_new(void)
Creates a new WU_Downside indicator.
WU_Mean wu_mean_new(void)
Creates a new WU_Mean indicator.
WU_MaxDrawdown wu_max_drawdown_new(void)
Creates a new WU_MaxDrawdown indicator.
WU_RSI wu_rsi_new(int window_size)
Creates a new WU_RSI (Relative Strength Index) indicator with the specified window size.
WU_MStDev wu_mstdev_new(int window_size, int dof)
Creates a new WU_MStDev (Moving Standard Deviation) indicator with the specified window size and degr...
WU_SMA wu_sma_new(int window_size)
Creates a new WU_SMA (Simple Moving Average) indicator with the specified window size.
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 ...
WU_MVar wu_mvar_new(int window_size, int dof)
Creates a new WU_MVar (Moving Variance) indicator with the specified window size and degree of freedo...
WU_Candle represents an aggregated data point to represent how prices moved within a specific time pe...
Tracks the average downside, calculate as the square root of the average of the squared negative valu...
double(* update)(struct WU_Downside_ *self, double value)
The exponential moving average (WU_EMA) is a type of moving average that gives more weight to recent ...
double(* update)(struct WU_EMA_ *self, double value)
The WU_MACDResult structure holds the current values of the MACD line, signal line,...
The WU_MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that show...
WU_MACDResult(* update)(struct WU_MACD_ *self, double value)
The WU_MStDev (Moving Standard Deviation) is an indicator that calculates the standard deviation of t...
double(* update)(struct WU_MStDev_ *self, double value)
The WU_MVar (Moving Variance) is an indicator that calculates the variance of the last N values,...
double(* update)(struct WU_MVar_ *self, double value)
Maximum Drawdown - tracks the largest peak-to-trough decline.
double(* update)(struct WU_MaxDrawdown_ *self, double portfolio_value)
A global mean calculator that updates with new values and maintains the current mean.
double(* update)(struct WU_Mean_ *self, double value)
The WU_RSI (Relative Strength Index) is a momentum oscillator that measures the speed and change of p...
double(* update)(struct WU_RSI_ *self, const WU_Candle *candle)
MovingAverage is a simple moving average indicator that calculates the average of the last N values,...
double(* update)(struct WU_SMA_ *self, double value)
A global standard deviation calcular.
double(* update)(struct WU_StDev_ *self, double value)
A timestamp represent a mark in time given relative to unix epoch.
A glabal variance calculator.
double(* update)(struct WU_Var_ *self, double value)