diff --git a/ta_lib/indicators/trend/src/supertrend.rs b/ta_lib/indicators/trend/src/supertrend.rs index cc37a3e1..5a3d11f1 100644 --- a/ta_lib/indicators/trend/src/supertrend.rs +++ b/ta_lib/indicators/trend/src/supertrend.rs @@ -41,9 +41,9 @@ pub fn supertrend( direction = direction.nz(first_non_empty); - let supertrend = iff!(direction.seq(&ONE), up, dn); + let trend = iff!(direction.seq(&ONE), up, dn); - (direction, supertrend) + (direction, trend) } #[cfg(test)]