Skip to main content

to_kagi

Function to_kagi 

Source
pub fn to_kagi(candles: &[Candle], reversal: f64) -> Result<Vec<Candle>>
Expand description

Transform candles into Kagi segments (wickra-core’s KagiBars, fixed reversal amount on closes), each emitted as a synthetic candle (open = segment start, close = segment end). reversal must be positive.