From 2d55a5363dfc39cbc7643b34a34b17a184953602 Mon Sep 17 00:00:00 2001 From: Dan Dixey Date: Tue, 9 Jan 2024 00:27:57 +0000 Subject: [PATCH] doc: Updating Output struct docstring reverts change to indicator/result size --- src/core/indicator/result.rs | 2 +- src/methods/pivot_point_standard.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/indicator/result.rs b/src/core/indicator/result.rs index 570bd57..1bab58a 100644 --- a/src/core/indicator/result.rs +++ b/src/core/indicator/result.rs @@ -19,7 +19,7 @@ pub struct IndicatorResult { impl IndicatorResult { /// Size of pre-allocated result array /// For the most of cases it should not be used anywhere outside this crate - pub const SIZE: usize = 11; + pub const SIZE: usize = 4; /// Returns a slice of signals of current indicator result #[must_use] diff --git a/src/methods/pivot_point_standard.rs b/src/methods/pivot_point_standard.rs index 078919c..97b0884 100644 --- a/src/methods/pivot_point_standard.rs +++ b/src/methods/pivot_point_standard.rs @@ -49,7 +49,7 @@ impl Method for PivotPointStandard { #[derive(Debug, Clone, Copy)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -/// The PivotPointTraditional method generates pivot points using the Traditional +/// The Pivot Point Traditional method generates pivot points using the Traditional /// Pivot Point method as described [TradingView](https://www.tradingview.com/support/solutions/43000521824-pivot-points-standard/). pub struct PivotPointTraditionalOutput { /// PP = (HIGHprev + LOWprev + CLOSEprev) / 3