kestrel-chartkitv0.33.0

← All examples

ichimoku

Ichimoku Kinko Hyo Cloud

ichimoku

examples/site_showcase.rs
// Ichimoku Kinko Hyo Cloud
// Defaults of "ichimoku" (see the indicator reference)
let params = HashMap::from([
    ("kijun_p".to_string(), 26.0),
    ("senkou_b_p".to_string(), 52.0),
    ("tenkan_p".to_string(), 9.0),
]);
let mut indicator = build_checked("ichimoku", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Ichimoku Kinko Hyo Cloud. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 104 alerts in view, the latest as markers.Ichimoku Kinko Hyo Cloud. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 104 alerts in view, the latest as markers.
  • Moving averages, bands and trend lines
  • unit: Price