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