mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-28 09:47:43 +00:00
35a6702b06
Deep review of all indicator categories verified .md headers against .cs WarmupPeriod, parameters, inputs, and outputs. Fixes include warmup corrections, parameter documentation, output type accuracy, and Pine Script alignment.
26 lines
709 B
Plaintext
26 lines
709 B
Plaintext
// Licensed under the Apache License, Version 2.0
|
|
// © mihakralj
|
|
//@version=6
|
|
indicator("Exponential Transformation (EXP)", "Exptrans", overlay=false)
|
|
|
|
//@function Applies an exponential transformation (y = e^x) to the input series.
|
|
//@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)
|
|
na
|
|
else
|
|
math.exp(source)
|
|
|
|
// ---------- Main loop ----------
|
|
|
|
// Inputs
|
|
i_source = input.source(close, "Source")
|
|
|
|
// Calculation
|
|
transformedSource = expT(i_source)
|
|
|
|
// Plot
|
|
plot(transformedSource, "Exptrans", color=color.yellow, linewidth=2)
|