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

Plots an 'open,high,low,close' series on a chart pane. More...

#include <TSCPlots.h>

Inheritance diagram for tsa::plot::ohlc:
tsa::plot::plot_base

Public Member Functions

 ohlc (const tsa::variant &op, const tsa::variant &hi, const tsa::variant &lo, const tsa::variant &cl, const color &col=color::gold, size_t weight=DEFAULT_WEIGHT, bool dynamic_color=false)
 x More...
 
 ohlc (const tsa::in_stream &, const color &col=color::gold, size_t weight=DEFAULT_WEIGHT, bool dynamic_color=false)
 x More...
 
 ohlc (const tsa::instrument &, const color &col=color::gold, size_t weight=DEFAULT_WEIGHT, bool dynamic_color=false)
 Constructor. More...
 
 ~ohlc (void)
 Destructor.
 
- 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 'open,high,low,close' series on a chart pane.

Constructor & Destructor Documentation

tsa::plot::ohlc::ohlc ( const tsa::variant op,
const tsa::variant hi,
const tsa::variant lo,
const tsa::variant cl,
const color col = color::gold,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamic_color = false 
)
explicit

x

Set this to true if the color changes from bar to bar.

Parameters
opBar open price.
hiBar high price.
loBar low price.
clBar close price.
colThe bar color.
weightThe bar weight / width.
tsa::plot::ohlc::ohlc ( const tsa::in_stream _r,
const color col = color::gold,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamic_color = false 
)
explicit

x

Parameters
_rThe in_stream object from which the o/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::ohlc::ohlc ( const tsa::instrument _r,
const color col = color::gold,
size_t  weight = DEFAULT_WEIGHT,
bool  dynamic_color = false 
)
explicit

Constructor.

Parameters
_rInstrument from which the o/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.