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

Plots an high/low/close series on a chart pane. More...

#include <TSCPlots.h>

Inheritance diagram for tsa::plot::hlc:
tsa::plot::plot_base

Public Member Functions

 hlc (const tsa::variant &h, const tsa::variant &l, const tsa::variant &c, const color &col=color::auto_color, size_t weight=DEFAULT_WEIGHT, bool dynamic_color=false)
 x More...
 
 hlc (const tsa::in_stream &, const color &col=color::auto_color, size_t weight=DEFAULT_WEIGHT, bool dynamic_color=false)
 x More...
 
 hlc (const tsa::instrument &, const color &col=color::auto_color, size_t weight=DEFAULT_WEIGHT, bool dynamic_color=false)
 x More...
 
 ~hlc (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 an high/low/close series on a chart pane.

Constructor & Destructor Documentation

tsa::plot::hlc::hlc ( const tsa::variant h,
const tsa::variant l,
const tsa::variant c,
const color col = color::auto_color,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamic_color = false 
)
explicit

x

Parameters
hBar high price.
lBar low price.
cBar close price.
colThe bar color.
weightThe bar weight / width.
dynamic_colorSet this to true if the color changes from bar to bar.
tsa::plot::hlc::hlc ( const tsa::in_stream _r,
const color col = color::auto_color,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamic_color = false 
)
explicit

x

Parameters
_rThe in_stream object from which the h/l/c prices are to be taken.
colThe bar color.
weightThe bar weight / width.
dynamic_colorSet this to true if the color changes from bar to bar.
tsa::plot::hlc::hlc ( const tsa::instrument _r,
const color col = color::auto_color,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamic_color = false 
)
explicit

x

Parameters
_rThe instrument object from which the h/l/c prices are to be taken.
colThe bar color.
weightThe bar weight / width.
dynamic_colorSet this to true if the color changes from bar to bar.