33 private readonly
double _minimumAcceptableReturn;
46 : this($
"TDD({period},{minimumAcceptableReturn})", period, minimumAcceptableReturn)
48 _minimumAcceptableReturn = minimumAcceptableReturn;
75 var avg = window.Select(x => Math.Pow(Math.Min(0, (
double)x.Value - _minimumAcceptableReturn), 2)).Average();
76 return Math.Sqrt(avg).SafeDecimalCast();