From d392fe41be254cacb16a7a909f4d71b07ef4ec35 Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Sun, 28 Apr 2024 19:55:34 +0300 Subject: [PATCH] upd --- ta_lib/strategies/stop_loss/src/atr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ta_lib/strategies/stop_loss/src/atr.rs b/ta_lib/strategies/stop_loss/src/atr.rs index 2a039910..c7b268bf 100644 --- a/ta_lib/strategies/stop_loss/src/atr.rs +++ b/ta_lib/strategies/stop_loss/src/atr.rs @@ -25,6 +25,6 @@ impl StopLoss for AtrStopLoss { fn find(&self, data: &OHLCVSeries) -> (Series, Series) { 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) } }