Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Apr 25, 2024
1 parent 5ff5fa6 commit b4bb46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ta_lib/indicators/trend/src/supertrend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4bb46b

Please sign in to comment.