pub fn stochastics_solution(
high: &[f64],
low: &[f64],
close: &[f64],
params: StochasticParams,
) -> FinanceResult<StochasticSolution>Expand description
Teaching solution: formulas + printable %K/%D table.
Prefer ValidatedStochastic::compute on the hot path; use this for notebooks,
audit trails, and classroom demos.
ยงExamples
use finance_solution::stocks::ta::{stochastics_solution, StochasticParams};
let sol = stochastics_solution(&h, &l, &c, StochasticParams::fast(9, 3)).unwrap();
assert!(sol.formula().contains("9"));
// sol.print_table();