![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
One bar: the prices and volume of one period, as exact decimals. More...
#include <algotradelib/src/core/market_data.hpp>
Public Attributes | |
| std::chrono::system_clock::time_point | timestamp_ |
| The instant marking the period; BarSeries::stamp_ says which edge. | |
| std::optional< Decimal64 > | open_ |
| The first trade's price; empty if nothing traded in the period (never zero or the previous close). | |
| Decimal64 | high_ |
| The highest trade price. | |
| Decimal64 | low_ |
| The lowest trade price. | |
| Decimal64 | close_ |
| The last trade price. | |
| Decimal64 | volume_ |
| The shares traded. | |
| std::optional< Decimal64 > | traded_value_ |
| The value traded, if the broker publishes it. | |
One bar: the prices and volume of one period, as exact decimals.
The interval, stamp convention and currency are on the BarSeries.
Definition at line 129 of file market_data.hpp.
| Decimal64 algotradelib::Bar::close_ |
The last trade price.
Definition at line 139 of file market_data.hpp.
Referenced by algotradelib::backtest::Backtester< Strategy, CapsType >::feed(), algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::feed(), algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::feed_warmup(), and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::record().
| Decimal64 algotradelib::Bar::high_ |
The highest trade price.
Definition at line 135 of file market_data.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| Decimal64 algotradelib::Bar::low_ |
The lowest trade price.
Definition at line 137 of file market_data.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| std::optional<Decimal64> algotradelib::Bar::open_ |
The first trade's price; empty if nothing traded in the period (never zero or the previous close).
Definition at line 133 of file market_data.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide().
| std::chrono::system_clock::time_point algotradelib::Bar::timestamp_ |
The instant marking the period; BarSeries::stamp_ says which edge.
Definition at line 131 of file market_data.hpp.
| std::optional<Decimal64> algotradelib::Bar::traded_value_ |
The value traded, if the broker publishes it.
Definition at line 143 of file market_data.hpp.
| Decimal64 algotradelib::Bar::volume_ |
The shares traded.
Definition at line 141 of file market_data.hpp.