feat: add new indicators (Decay, Edecay, MinusDi, MinusDm, PlusDi, PlusDm, Maxindex, Minindex, Sarext) and update pine scripts, core libs, validation tests, and python bindings

This commit is contained in:
Miha Kralj
2026-03-09 13:45:46 -07:00
parent 8e43d62cbb
commit 031f1b5fe6
491 changed files with 6156 additions and 5590 deletions
+3 -3
View File
@@ -449,7 +449,7 @@ public sealed class Variance : AbstractBase
{
double v = Unsafe.Add(ref srcRef, startIdx + k);
recalcSum += v;
recalcSumSq += v * v;
recalcSumSq = Math.FusedMultiplyAdd(v, v, recalcSumSq);
}
sum = recalcSum;
sumSq = recalcSumSq;
@@ -553,7 +553,7 @@ public sealed class Variance : AbstractBase
{
double v = Unsafe.Add(ref srcRef, startIdx + k);
recalcSum += v;
recalcSumSq += v * v;
recalcSumSq = Math.FusedMultiplyAdd(v, v, recalcSumSq);
}
sum = recalcSum;
sumSq = recalcSumSq;
@@ -676,7 +676,7 @@ public sealed class Variance : AbstractBase
{
double v = Unsafe.Add(ref srcRef, startIdx + k);
recalcSum += v;
recalcSumSq += v * v;
recalcSumSq = Math.FusedMultiplyAdd(v, v, recalcSumSq);
}
sum = recalcSum;
sumSq = recalcSumSq;