Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Apr 28, 2024
1 parent 4bd53ba commit d392fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ta_lib/strategies/stop_loss/src/atr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ impl StopLoss for AtrStopLoss {
fn find(&self, data: &OHLCVSeries) -> (Series<f32>, Series<f32>) {
let atr_multi = data.atr(self.period, self.smooth_type) * self.factor;

(&data.low - &atr_multi, &data.high + &atr_multi)
(data.low() - &atr_multi, data.high() + &atr_multi)
}
}

0 comments on commit d392fe4

Please sign in to comment.