kestrel-chartkitv0.33.0

← All examples

fisher_transform

Fisher Transform

fisher_transform

examples/site_showcase.rs
// Fisher Transform (value is the EMA(avg_len) of the raw transform; avg_len = 1 gives the raw line)
// Defaults of "fisher_transform" (see the indicator reference)
let params = HashMap::from([
    ("avg_len".to_string(), 2.0),
    ("fish_len".to_string(), 10.0),
    ("overbought".to_string(), 1.5),
    ("oversold".to_string(), -1.5),
]);
let mut indicator = build_checked("fisher_transform", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Fisher Transform (value is the EMA(avg_len) of the raw transform; avg_len = 1 gives the raw line). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 26 alerts in view, the latest as markers.Fisher Transform (value is the EMA(avg_len) of the raw transform; avg_len = 1 gives the raw line). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 26 alerts in view, the latest as markers.
  • Oscillators
  • unit: Ratio