59 : base(name, targetSymbol, referenceSymbol, period)
64 throw new ArgumentException($
"Period parameter for Correlation indicator must be greater than 2 but was {period}");
67 _correlationType = correlationType;
79 : this($
"Correlation({period})", targetSymbol, referenceSymbol, period, correlationType)
100 throw new ArgumentException($
"The given symbol {input.Symbol} was not {TargetSymbol} or {ReferenceSymbol} symbol");
110 var newCorrelation = 0d;
119 if (newCorrelation.IsNaNOrZero())