15typedef struct WU_Candle_ {
54 double close,
double volume);
66#define wu_candle_to_single_value(candle) \
67 wu_single_init((candle)->timestamp, (candle)->close)
69#define wu_trade_to_single_value(trade) \
70 wu_single_init((trade)->timestamp, (trade)->price)
bool wu_signal_validate(const WU_Signal *signal)
WU_Single wu_single_init(WU_TimeStamp timestamp, double value)
WU_Signal wu_signal_init(WU_TimeStamp timestamp, WU_Side side, double price, double quantity)
WU_Candle wu_candle_init(WU_TimeStamp timestamp, double open, double high, double low, double close, double volume)
Implementation of data type initialization functions.
WU_Trade wu_trade_init(WU_TimeStamp timestamp, double price, double volume, WU_Side side)
WU_Candle represents an aggregated data point to represent how prices moved within a specific time pe...
WU_Signal represents a trading signal generated by a strategy.
WU_Single represents a single value with a timestamp, which can be a price, an indicator value,...
A timestamp represent a mark in time given relative to unix epoch.
WU_Trade represents a single trade in the market, including the timestamp, price, volume,...
WU_Side
WU_Side represents the direction of a signal or a trade.
WU_DataType
WU_DataType represents the type of input data, which can be a candle, a trade, or a single value.