connors_rsi
Connors RSI
connors_rsi
examples/site_showcase.rs// Connors RSI
// Defaults of "connors_rsi" (see the indicator reference)
let params = HashMap::from([
("rank_len".to_string(), 100.0),
("rsi_len".to_string(), 3.0),
("streak_len".to_string(), 2.0),
]);
let mut indicator = build_checked("connors_rsi", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}