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