tzutrader
A composable C++ backtesting library for trading strategies (experimental)
Loading...
Searching...
No Matches
tzu::SingleValue Struct Reference

#include <defs.h>

Public Member Functions

 SingleValue ()=default
 SingleValue (int64_t ts, double v)

Public Attributes

int64_t timestamp
double value = 0.0

Detailed Description

Represents a single value data point, which includes the timestamp and a double value. This can be used for indicators or other data that does not fit into the OHLCV or Tick structures.

Constructor & Destructor Documentation

◆ SingleValue() [1/2]

tzu::SingleValue::SingleValue ( )
default

◆ SingleValue() [2/2]

tzu::SingleValue::SingleValue ( int64_t ts,
double v )
inline

Member Data Documentation

◆ timestamp

int64_t tzu::SingleValue::timestamp

◆ value

double tzu::SingleValue::value = 0.0

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