fisher_transform
Fisher Transform
fisher_transform
examples/site_showcase.rs// Fisher Transform (value is the EMA(avg_len) of the raw transform; avg_len = 1 gives the raw line)
// Defaults of "fisher_transform" (see the indicator reference)
let params = HashMap::from([
("avg_len".to_string(), 2.0),
("fish_len".to_string(), 10.0),
("overbought".to_string(), 1.5),
("oversold".to_string(), -1.5),
]);
let mut indicator = build_checked("fisher_transform", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}