trix
TRIX
trix
examples/site_showcase.rs// TRIX (rate of change of a triple-smoothed price series, in percent)
// Defaults of "trix" (see the indicator reference)
let params = HashMap::from([
("len".to_string(), 15.0),
("signal_len".to_string(), 9.0),
]);
let mut indicator = build_checked("trix", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}