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

WU_Candle represents an aggregated data point to represent how prices moved within a specific time period. More...

#include <data.h>

Data Fields

WU_TimeStamp timestamp
double open
double high
double low
double close
double volume
WU_DataType data_type

Detailed Description

WU_Candle represents an aggregated data point to represent how prices moved within a specific time period.

It includes the timestamp of the start of the period, the open price, the high price, the low price, the close price, and the volume traded during that period. Instead of directly using the WU_Candle structure, the wu_candle_init function should be used to create a new WU_Candle instance, ensuring all fields are properly initialized.

Definition at line 15 of file data.h.

Field Documentation

◆ close

double WU_Candle::close

Definition at line 20 of file data.h.

◆ data_type

WU_DataType WU_Candle::data_type

Definition at line 22 of file data.h.

◆ high

double WU_Candle::high

Definition at line 18 of file data.h.

◆ low

double WU_Candle::low

Definition at line 19 of file data.h.

◆ open

double WU_Candle::open

Definition at line 17 of file data.h.

◆ timestamp

WU_TimeStamp WU_Candle::timestamp

Definition at line 16 of file data.h.

◆ volume

double WU_Candle::volume

Definition at line 21 of file data.h.


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