8 double diff = candle->
close - candle->
open;
18static void delete(WU_RSI rsi) {
25 WU_RSI rsi = malloc(
sizeof(
struct WU_RSI_));
static double update(WU_EMA ema, double value)
#define wu_indicator_get(indicator)
Get the current value of the indicator.
#define wu_indicator_delete(indicator)
Delete the indicator and free any resources allocated by it.
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...
#define wu_indicator_update(indicator, value)
Header file for technical indicators.
static double update(WU_RSI rsi, const WU_Candle *candle)
WU_RSI wu_rsi_new(int window_size)
Creates a new WU_RSI (Relative Strength Index) indicator with the specified window size.
WU_Candle represents an aggregated data point to represent how prices moved within a specific time pe...
The WU_RSI (Relative Strength Index) is a momentum oscillator that measures the speed and change of p...