pub fn plus_dm_into(
high: &[Float],
low: &[Float],
period: usize,
output: &mut [Float],
) -> Result<PlusDmState, TechalibError>Expand description
§Calculation of the PLUS_DM function
It stores the results in the provided output arrays and
return the state PlusDmState.
§Input Arguments
high: A slice ofFloatrepresenting the high prices.low: A slice ofFloatrepresenting the low prices.period: The period for the calculation.
§Output Arguments
output: A mutable slice ofFloatwhere the calculated values will be stored.
§Returns
A Result containing a PlusDmState,
or a TechalibError error if the calculation fails.