qqe
Quantitative Qualitative Estimation: the EMA-smoothed RSI with a trailing line factor double-smoothed mea…
qqe
examples/site_showcase.rs// Quantitative Qualitative Estimation: the EMA-smoothed RSI with a trailing line `factor` double-smoothed mean changes away (extra `trail`, state `up`/`down`/`undecided`); the trend starts undecided instead of up and turns when the smoothed RSI moves beyond the previous bar's opposite band. Published from bar rsi_len + 2.
// Defaults of "qqe" (see the indicator reference)
let params = HashMap::from([
("factor".to_string(), 4.236),
("rsi_len".to_string(), 14.0),
("smoothing".to_string(), 5.0),
]);
let mut indicator = build_checked("qqe", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}