From b4bb46bfc20fa567b0b56d9e70a84145f758a1e3 Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Thu, 25 Apr 2024 03:47:17 +0300 Subject: [PATCH] upd --- ta_lib/indicators/trend/src/supertrend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ta_lib/indicators/trend/src/supertrend.rs b/ta_lib/indicators/trend/src/supertrend.rs index 36d602d0..cc37a3e1 100644 --- a/ta_lib/indicators/trend/src/supertrend.rs +++ b/ta_lib/indicators/trend/src/supertrend.rs @@ -31,7 +31,7 @@ pub fn supertrend( direction = nz!(direction.shift(1), direction); direction = iff!(close.sgte(&prev_dn), trend_bull, direction); - direction = iff!(close.slte(&prev_up), trend_bear, direction); + direction = iff!(close.slt(&prev_up), trend_bear, direction); } let first_non_empty = direction