Files
QuanTAlib/lib/numerics/exptrans/exptrans.pine
T
Miha Kralj 24e86d762a Add documentation links for various volatility indicators and channels
- Updated BBWN, BBWP, CCV, CV, CVI, EWMA, GKV, HLV, HV, Jvolty, JVOLTYN, MASSI, NATR, RSV, RV, RVI, TR, UI, VOV, VR, YZV indicators with documentation links.
- Added documentation links for Aberration, Acceleration Bands, Andrews' Pitchfork, Adaptive Price Zone, ATR Bands, Bollinger Bands, Center of Gravity, Donchian Channels, Decay Min-Max Channel, Detrended Synthetic Price, EACP, EBSW, HOMOD, Jurik Volatility Bands, Keltner Channel, MA Envelope, Min-Max Channel, Price Channel, Regression Channels, Standard Deviation Channel, Stoller Average Range Channel, Super Trend Bands, Ultimate Bands, Ultimate Channel, VWAP Bands, and VWAP with Standard Deviation Bands.
2026-02-18 11:55:48 -08:00

25 lines
729 B
Plaintext

// 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.
//@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)