![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
One bar, delivered to on_bar. More...
#include <algotradelib/src/strategy/event.hpp>
Public Attributes | |
| InstrumentId | instrument_ |
| The instrument the bar is for. | |
| BarInterval | interval_ {BarInterval::ONE_DAY} |
| The period length the bar covers. | |
| BarStamp | stamp_ {BarStamp::CLOSE} |
| Whether bar_.timestamp_ marks the period's open or close. | |
| Bar | bar_ |
| The bar. | |
| std::chrono::system_clock::time_point | period_end_ {} |
| When the bar's period ended: the earliest moment the bar could be known. | |
One bar, delivered to on_bar.
interval_ and stamp_ say which period the bar covers; period_end_ is the instant that period ended, the earliest moment the bar could be known. See bar_ for which bars a live source may deliver while still forming.
| Bar algotradelib::strategy::BarEvent::bar_ |
The bar.
Definition at line 216 of file event.hpp.
Referenced by algotradelib::backtest::NextBarFillModel::decide(), 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().
| InstrumentId algotradelib::strategy::BarEvent::instrument_ |
The instrument the bar is for.
Definition at line 204 of file event.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(), algotradelib::strategy::make_bar_event(), and algotradelib::runner::Runner< Strategy, CapsType, Tag, Executor >::record().
| BarInterval algotradelib::strategy::BarEvent::interval_ {BarInterval::ONE_DAY} |
The period length the bar covers.
Definition at line 206 of file event.hpp.
Referenced by algotradelib::backtest::ReplayClock::contiguous().
| std::chrono::system_clock::time_point algotradelib::strategy::BarEvent::period_end_ {} |
When the bar's period ended: the earliest moment the bar could be known.
Definition at line 218 of file event.hpp.
Referenced by algotradelib::backtest::ReplayClock::advance(), algotradelib::backtest::ReplayClock::contiguous(), algotradelib::backtest::NextBarFillModel::decide(), 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().
| BarStamp algotradelib::strategy::BarEvent::stamp_ {BarStamp::CLOSE} |