Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Jul 3, 2023
1 parent d05e9c6 commit 2e3f582
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ta_lib/utils/src/tr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ pub fn true_range(high: &[f64], low: &[f64], close: &[f64]) -> Vec<f64> {
high[i] - low[i]
} else {
f64::max(
f64::max(
high[i] - low[i],
f64::abs(high[i] - close[i - 1])
),
f64::max(high[i] - low[i], f64::abs(high[i] - close[i - 1])),
f64::abs(low[i] - close[i - 1]),
)
};
Expand Down

0 comments on commit 2e3f582

Please sign in to comment.