Trait technical_indicators::charts::Chart
[−]
[src]
pub trait Chart { fn as_chart(&self) -> &Chart; fn get(&self, index: usize) -> Option<&DataPoint>; fn len(&self) -> usize; fn push(&mut self, data_point: &DataPoint); fn pop_front(&mut self); fn open<'chart>(&'chart self) -> SourceSeries { ... } fn high<'chart>(&'chart self) -> SourceSeries { ... } fn low<'chart>(&'chart self) -> SourceSeries { ... } fn close<'chart>(&'chart self) -> SourceSeries { ... } fn volume<'chart>(&'chart self) -> SourceSeries { ... } }
Required Methods
fn as_chart(&self) -> &Chart
fn get(&self, index: usize) -> Option<&DataPoint>
Get value of this Chart
at index
.
fn len(&self) -> usize
Get number of data points in this chart.
fn push(&mut self, data_point: &DataPoint)
Add newest data point to the chart.
fn pop_front(&mut self)
Remove oldest data point from the chart.
Provided Methods
fn open<'chart>(&'chart self) -> SourceSeries
fn high<'chart>(&'chart self) -> SourceSeries
fn low<'chart>(&'chart self) -> SourceSeries
fn close<'chart>(&'chart self) -> SourceSeries
fn volume<'chart>(&'chart self) -> SourceSeries
Implementors
impl Chart for CandleStick