midas
MIDAS launch-anchored curve with Topfinder/Bottomfinder projection
midas
examples/site_showcase.rs// MIDAS launch-anchored curve with Topfinder/Bottomfinder projection (build_typed with mode=topfinder|bottomfinder)
// Defaults of "midas" (see the indicator reference)
let params = HashMap::from([
("maturity_bars".to_string(), 20.0),
]);
let mut indicator = build_checked("midas", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}