kestrel-chartkitv0.43.0

← All examples

opening_range

Opening range of a recurring session: the width of the high-low range of its first orb_duration_mins as val…

opening_range

examples/site_showcase.rs
// Opening range of a recurring session: the width of the high-low range of its first orb_duration_mins as value, with orb_high, orb_low, in_orb_window and new_session as extras; start equal to end means a session of 24 hours
// Defaults of "opening_range" (see the indicator reference)
let params = HashMap::from([
    ("end_hour".to_string(), 0.0),
    ("end_minute".to_string(), 0.0),
    ("orb_duration_mins".to_string(), 30.0),
    ("start_hour".to_string(), 0.0),
    ("start_minute".to_string(), 0.0),
    ("utc_offset_seconds".to_string(), 0.0),
]);
let mut indicator = build_checked("opening_range", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}

Not yet verified: no independent second implementation yet.

Opening range of a recurring session: the width of the high-low range of its first orb_duration_mins as value, with orb_high, orb_low, in_orb_window and new_session as extras; start equal to end means a session of 24 hours. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.Opening range of a recurring session: the width of the high-low range of its first orb_duration_mins as value, with orb_high, orb_low, in_orb_window and new_session as extras; start equal to end means a session of 24 hours. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.
  • Market structure and patterns
  • unit: Unitless