point_and_figure
Point-and-figure chart: columns of X and O from a box size and a reversal in boxes; the current column with…
point_and_figure
examples/site_showcase.rs// Point-and-figure chart: columns of X and O from a box size and a reversal in boxes; the current column with its number, direction and boxes on every bar
// Defaults of "point_and_figure" (see the indicator reference)
let params = HashMap::from([
("box_size".to_string(), 1.0),
("method".to_string(), 0.0),
("reversal".to_string(), 3.0),
]);
let mut indicator = build_checked("point_and_figure", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}