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
+1 -16
View File
@@ -412,22 +412,7 @@ public sealed class Vhf : AbstractBase
// Calculate VHF
if (closeFilled >= closeBufSize && diffFilled >= period)
{
// Scan for max/min over close buffer
double hi = double.MinValue;
double lo = double.MaxValue;
for (int k = 0; k < closeBufSize; k++)
{
double cv = closeBuf[k];
if (cv > hi)
{
hi = cv;
}
if (cv < lo)
{
lo = cv;
}
}
var (lo, hi) = ((ReadOnlySpan<double>)closeBuf).MinMaxSIMD();
double numerator = hi - lo;
if (diffSum > 1e-10)
+1 -1
View File
@@ -1,4 +1,4 @@
// The MIT License (MIT)
// Licensed under the Apache License, Version 2.0
// © mihakralj
//@version=6
indicator("VHF: Vertical Horizontal Filter", "VHF", overlay=false)