|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Represents a plotbar output. More...
#include <plot_bar.hpp>
Public Member Functions | |
| PlotBar (const ffi::PlotBar *p) | |
| std::optional< std::string_view > | title () const |
| Gets the title. | |
| std::optional< ffi::Bar > | value (uintptr_t idx) const |
| Gets the OHLC bar at the specified index. | |
| std::optional< uint32_t > | color (uintptr_t idx) const |
| Gets the color at the specified index. | |
| bool | editable () const |
| Returns whether the plot-bar is editable. | |
| std::optional< uintptr_t > | showLast () const |
| Gets the show_last value, if set. | |
| Display | display () const |
| Gets the display bitmask. | |
| std::optional< std::string_view > | format () const |
| Gets the optional formatting hint. | |
| std::optional< int32_t > | precision () const |
| Gets the optional decimal precision. | |
| bool | forceOverlay () const |
| Gets whether the plot-bar is forced to render as overlay. | |
Represents a plotbar output.
Definition at line 27 of file plot_bar.hpp.
|
inline |
Definition at line 32 of file plot_bar.hpp.
|
inline |
Gets the color at the specified index.
Definition at line 62 of file plot_bar.hpp.
|
inline |
Gets the display bitmask.
Definition at line 91 of file plot_bar.hpp.
|
inline |
Returns whether the plot-bar is editable.
Definition at line 74 of file plot_bar.hpp.
|
inline |
Gets whether the plot-bar is forced to render as overlay.
Definition at line 120 of file plot_bar.hpp.
|
inline |
Gets the optional formatting hint.
Definition at line 96 of file plot_bar.hpp.
References openpine::detail::refToView().
|
inline |
Gets the optional decimal precision.
Definition at line 108 of file plot_bar.hpp.
|
inline |
Gets the show_last value, if set.
Definition at line 79 of file plot_bar.hpp.
|
inline |
Gets the title.
Definition at line 38 of file plot_bar.hpp.
References openpine::detail::refToView().
|
inline |
Gets the OHLC bar at the specified index.
Definition at line 50 of file plot_bar.hpp.