Function apo

Source
pub fn apo(
    close: &Vec<f64>,
    fastperiod: i32,
    slowperiod: i32,
    matype: TA_MAType,
) -> (Vec<f64>, TA_Integer)
Expand description

TA_APO - Absolute Price Oscillator

Input = close, fastperiod(12), slowperiod(26), matype

Output: (1st, 2nd)

1st: output vector(f64)

2nd: the first index of inputs corresponding to an valid output value