Skip to main content

atr

Function atr 

Source
pub fn atr(bars: &[OHLCV], length: usize) -> Vec<f64>
Expand description

Average true range as a simple average (matches ThinkScript’s Keltner channel with averageType = SIMPLE).