SIMD Refactor: Merge simd-dev into dev (#55)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
Co-authored-by: Warp <agent@warp.dev>
This commit is contained in:
Miha Kralj
2026-01-18 19:02:03 -08:00
committed by GitHub
co-authored by Claude Opus 4.5 aider Warp
parent 5bcdf8d614
commit 86fe32a682
1750 changed files with 198235 additions and 80539 deletions
+26
View File
@@ -0,0 +1,26 @@
// The MIT License (MIT)
// © mihakralj
//@version=6
indicator("Price Volume Rank (PVR)", "PVR", overlay=false)
//@function Calculates Price Volume Rank
//@doc https://github.com/mihakralj/pinescript/blob/main/indicators/volume/pvr.md
//@param price Price series for comparison
//@param vol Volume series for comparison
//@returns Price Volume Rank (0-4)
//@optimized for performance and dirty data
pvr(series float price, series float vol=volume) =>
float p = nz(price, close), float v = nz(vol, 0.0)
float pp = nz(p[1], p), float pv = nz(v[1], v)
p > pp ? (v > pv ? 1 : 2) : p < pp ? (v < pv ? 3 : 4) : 0
// ---------- Main loop ----------
// Inputs
i_price_source = input.source(close, "Price Source")
// Calculation
pvr_value = pvr(i_price_source)
// Plot
plot(pvr_value, "PVR", color=color.yellow, linewidth=2, plot.style_stepline)