From 41c209b2220c248629ffa4bf176d49f8cf450b90 Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Thu, 2 May 2024 00:27:29 +0300 Subject: [PATCH] udp --- ta_lib/indicators/trend/src/supertrend.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)]