Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
tsa::plot::rbar Class Reference

Plots a 'bar plot' on a chart pane. Bars are drawn from the lowest y-value to the current y-value. Please use class plot::bar instead for bars drawn from the zero line. Drawing from the zero line is more common when plotting financial data. More...

#include <TSCPlots.h>

Inheritance diagram for tsa::plot::rbar:
tsa::plot::plot_base

Public Member Functions

 rbar (const tsa::variant &value, const color &color=color::auto_color, size_t weight=DEFAULT_WEIGHT, bool dynamicColor=false)
 x More...
 
 rbar (const tsa::variant &value, const color &color_primary, const color &color_secondary, size_t weight=DEFAULT_WEIGHT)
 x More...
 
 ~rbar (void)
 x
 
- Public Member Functions inherited from tsa::plot::plot_base
 plot_base (void)
 Constructor.
 
 plot_base (plot_type_t _t, const tsa::variant &_v, const color &_pc, const color &_sc, size_t _w, bool _dc, int _js, bool _has_pivot, double _piv)
 
 plot_base (plot_type_t _t, size_t _nv, const color &_pc, const color &_sc, size_t _w, bool _dc, int _js, bool _has_pivot, double _piv)
 
 ~plot_base (void)
 

Detailed Description

Plots a 'bar plot' on a chart pane. Bars are drawn from the lowest y-value to the current y-value. Please use class plot::bar instead for bars drawn from the zero line. Drawing from the zero line is more common when plotting financial data.

Constructor & Destructor Documentation

tsa::plot::rbar::rbar ( const tsa::variant value,
const color color = color::auto_color,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamicColor = false 
)
explicit

x

Parameters
valueThe current value to be drawn.
colorThe bar color.
weightThe bar weight / width.
dynamicColorSet this to true if the bar color may change from bar to bar.
tsa::plot::rbar::rbar ( const tsa::variant value,
const color color_primary,
const color color_secondary,
size_t  weight = DEFAULT_WEIGHT 
)
explicit

x

Parameters
valueThe current value to be drawn.
color_primaryPrimary color
color_secondarySecondary color
weightThe bar weight / width.