aroon

Function aroon 

Source
pub fn aroon<'a, T: ToPrimitive>(
    high: &'a [T],
    low: &'a [T],
    window: usize,
) -> impl Iterator<Item = (f64, f64)> + 'a
Expand description

Aroon

Measures the trend strength and direction of an asset based on the time between highs and lows. Consists of two lines that show the time since a recent high or low.

§Usage

When up line is above the down, it suggests an uptrend.

§Sources

[1]

§Examples

use traquer::trend;

trend::aroon(
    &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
    &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
    3).collect::<Vec<(f64, f64)>>();