![]() |
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.
The bar.
| BarInterval algotradelib::strategy::BarEvent::interval_ {BarInterval::ONE_DAY} |
| std::chrono::system_clock::time_point algotradelib::strategy::BarEvent::period_end_ {} |