Struct technical_indicators::indicators::Ichimoku
[−]
[src]
pub struct Ichimoku<'chart> { /* fields omitted */ }
Methods
impl<'chart> Ichimoku<'chart>
[src]
fn new(
chart: &'chart Chart,
turning_line_period: usize,
standard_line_period: usize,
span_b_period: usize,
lagging_span_displacement: usize
) -> Self
[src]
chart: &'chart Chart,
turning_line_period: usize,
standard_line_period: usize,
span_b_period: usize,
lagging_span_displacement: usize
) -> Self
fn default(chart: &'chart Chart) -> Self
[src]
Return Ichimoku chart with default settings.
fn turning_line(&self, index: usize) -> Option<f64>
[src]
A moving average of the highest high and lowest low over the last
turning_line_period
data points.
fn standard_line(&self, index: usize) -> Option<f64>
[src]
A moving average of the highest high and lowest low over the last
standard_line_period
data points.
fn span_a(&self, index: i64) -> Option<f64>
[src]
The average of the turning line (i.e Tenkan Sen) and
standard line (i.e. Kijun Sen), plotted lagging_span_displacement
data points ahead.
fn span_b(&self, index: i64) -> Option<f64>
[src]
The average of the highest high and lowest low over the last span_b_period
data points, plotted lagging_span_displacement
data points ahead.
fn lagging_line(&self, index: i64) -> Option<f64>
[src]
The closing price plotted lagging_span_displacement
data points behind.