mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 03:28:05 +00:00
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:
co-authored by
Claude Opus 4.5
aider
Warp
parent
5bcdf8d614
commit
86fe32a682
@@ -0,0 +1,25 @@
|
||||
// The MIT License (MIT)
|
||||
// © mihakralj
|
||||
//@version=6
|
||||
indicator("Exponential Transformation (EXP)", "Exptrans", overlay=false)
|
||||
|
||||
//@function Applies an exponential transformation (y = e^x) to the input series.
|
||||
//@doc https://github.com/mihakralj/pinescript/blob/main/indicators/numerics/exp.md
|
||||
//@param source series float The input series to transform.
|
||||
//@returns series float The exponentially transformed series.
|
||||
//@optimized for performance and dirty data
|
||||
expT(series float source) =>
|
||||
if na(source)
|
||||
runtime.error("Parameter 'source' cannot be na.")
|
||||
math.exp(source)
|
||||
|
||||
// ---------- Main loop ----------
|
||||
|
||||
// Inputs
|
||||
i_source = input(close, "Source")
|
||||
|
||||
// Calculation
|
||||
transformedSource = expT(i_source)
|
||||
|
||||
// Plot
|
||||
plot(transformedSource, "Exponential Transformation", color=color.yellow, linewidth=2)
|
||||
Reference in New Issue
Block a user