Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed May 1, 2024
1 parent d5581e8 commit 04a8b5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ta_lib/indicators/momentum/src/stc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ pub fn stc(
let d = k.smooth(smooth_type, d_first);
let kd = stoch(&d, &d, &d, cycle);

kd.smooth(smooth_type, d_second)
let stc = kd.smooth(smooth_type, d_second);

stc.min(&SCALE).max(&ZERO)
}

#[cfg(test)]
Expand Down

0 comments on commit 04a8b5f

Please sign in to comment.