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
+22
View File
@@ -0,0 +1,22 @@
// The MIT License (MIT)
// © mihakralj
//@version=6
indicator("True Range", "TR", overlay=false)
//@function Calculates the True Range
//@returns The True Range value for the current bar.
tr() =>
float prevClose = nz(close[1], close)
float tr1 = high - low
float tr2 = math.abs(high - prevClose)
float tr3 = math.abs(low - prevClose)
float trueRange = math.max(tr1, math.max(tr2, tr3))
trueRange
// ---------- Main loop ----------
// Calculation
trValue = tr()
// Plot
plot(trValue, "TR", color=color.yellow, linewidth=2)