11#if (defined(_MSVC_LANG) ? _MSVC_LANG : __cplusplus) < 201703L
13 "OpenPine C++ wrapper headers require C++17 (std::optional, std::string_view)."
41 Chart(
const ffi::Chart* p) : p_(p) {}
47 uintptr_t
seriesLength()
const {
return ffi::chartSeriesLength(p_); }
64 std::optional<SeriesGraphType> type = std::nullopt)
const {
74 std::optional<GraphType> type = std::nullopt)
const {
C++ wrapper for bar-colors visual output.
Represents bar-colors settings in a chart.
GraphIterator graphIterator(std::optional< GraphType > type=std::nullopt) const
Creates an iterator over the non-series graphs in the chart.
uintptr_t seriesLength() const
Gets the series length of the chart.
BarColors asBarColors() const
Gets the bar-colors settings for the chart.
FilledOrdersIterator filledOrdersOnBar(uintptr_t bar_index) const
Creates an iterator over filled orders on a bar (strategy order fills).
SeriesGraphIterator seriesGraphIterator(std::optional< SeriesGraphType > type=std::nullopt) const
Creates an iterator over the series graphs in the chart.
Chart(const ffi::Chart *p)
Constructs a chart wrapper around the given pointer.
Iterator over filled orders (strategy order fills) on a single bar.
Iterator over non-series graphs in a chart.
Iterator over series graphs in a chart.
C++ wrapper for iterating filled orders on a chart bar.
C++ wrappers for non-series graph visuals.
C++ wrappers for series graph visuals.
Re-exports FFI types into the openpine namespace.