pub fn tii(data: &[f64], window: usize) -> Vec<f64>
trend intensity index https://www.marketvolume.com/technicalanalysis/trendintensityindex.asp