PINE LIBRARY
Telah dikemas kini

BossExoticMAs

202

A next-generation moving average and smoothing library by TheStopLossBoss, featuring premium adaptive, exotic, and DSP-inspired filters — optimized for Pine Script® v6 and designed for Traders who demand precision and beauty.

> BossExoticMAs is a complete moving average and signal-processing toolkit built for Pine Script v6.
It combines the essential trend filters (SMA, EMA, WMA, etc.) with advanced, high-performance exotic types used by quants, algo designers, and adaptive systems.

Each function is precision-tuned for stability, speed, and visual clarity — perfect for building custom baselines, volatility filters, dynamic ribbons, or hybrid signal engines.

Includes built-in color gradient theming powered by the exclusive BossGradient —



//Key Features

✅ Full Moving Average Set

SMA, EMA, ZEMA, WMA, HMA, WWMA, SMMA
DEMA, TEMA, T3 (Tillson)
ALMA, KAMA, LSMA
VMA, VAMA, FRAMA


✅ Signal Filters

One-Euro Filter (Crispin/Casiez implementation)
ATR-bounded Range Filter


✅ Color Engine

lerpColor() safe blending using color.from_gradient

Thematic gradient palettes: STOPLOSS, VAPORWAVE, ROYAL FLAME, MATRIX FLOW

Exclusive: BOSS GRADIENT


✅ Helper Functions

Clamping, normalization, slope detection, tick delta
Slope-based dynamic color control via slopeThemeColor()


🧠 Usage Example

//version=6
indicator("Boss Exotic MA Demo", overlay=true)
import TheStopLossBoss/BossExoticMAs/1 as boss

len = input.int(50, "Length")
atype = input.string("T3", "MA Type", options=["SMA","EMA","ZEMA","WMA","HMA","WWMA","SMMA",
"DEMA","TEMA","T3","ALMA","KAMA","LSMA","VMA","VAMA","FRAMA"])
t3factor = input.float(0.7, "T3 β", step=0.05)
smoothColor = boss.slopeThemeColor(close, "BOSS GRADIENT", 0.001)ma = boss.maSelect(close, len, atype, t3factor, 0.85, 14)
plot(ma, "Boss Exotic MA", color=smoothColor, linewidth=2)


---

🔑 Notes

Built exclusively for Pine Script® v6

Library designed for import use — all exports are prefixed cleanly (boss.functionName())

Some functions maintain internal state (var-based). Warnings are safe to ignore — adaptive design choice.

Each MA output is non-repainting and mathematically stable.

---

📜 Author

TheStopLossBoss
Designer of precision trading systems and custom adaptive algorithms.
Follow for exclusive releases, educational material, and full-stack trend solutions.



movingaverage, trend, adaptive, filter, volatility, smoothing, quant, technicalanalysis, bossgradient, t3, alma, frama, vma
Nota Keluaran
v2
Nota Keluaran
v3

Added:
bossGradient(isBull, layerIndex, totalLayers)
  Parameters:
    isBull (bool)
    layerIndex (int)
    totalLayers (int)

vwma(src, length)
  Parameters:
    src (float)
    length (int)

vwema(src, length)
  Parameters:
    src (float)
    length (simple int)

ama(src, length, fastLength, slowLength)
  Parameters:
    src (float)
    length (int)
    fastLength (int)
    slowLength (int)

ahrma(src, length)
  Parameters:
    src (float)
    length (int)

alxma(src, length)
  Parameters:
    src (float)
    length (int)

dsema(src, length)
  Parameters:
    src (float)
    length (int)

fema(src, length)
  Parameters:
    src (float)
    length (int)

instant(src, alpha)
  Parameters:
    src (float)
    alpha (float)

ilrs(src, length)
  Parameters:
    src (float)
    length (int)

laguerre(src, alpha)
  Parameters:
    src (float)
    alpha (float)

leader(src, length)
  Parameters:
    src (float)
    length (int)

mcginley(src, length)
  Parameters:
    src (float)
    length (int)

mcNicholl(src, length)
  Parameters:
    src (float)
    length (simple int)

nonlagma(src, length)
  Parameters:
    src (float)
    length (int)

pwma(src, length, power)
  Parameters:
    src (float)
    length (int)
    power (float)

rmta(src, length)
  Parameters:
    src (float)
    length (int)

decycler(src, length)
  Parameters:
    src (float)
    length (int)

swma(src, length)
  Parameters:
    src (float)
    length (int)

slwma(src, length)
  Parameters:
    src (float)
    length (int)

super(src, length)
  Parameters:
    src (float)
    length (int)

smoother(src, length)
  Parameters:
    src (float)
    length (int)

tma(src, length)
  Parameters:
    src (float)
    length (int)

zlagma(src, length)
  Parameters:
    src (float)
    length (int)

threepolebuttfilt(src, length)
  Parameters:
    src (float)
    length (int)

threepolesss(src, length)
  Parameters:
    src (float)
    length (int)

twopolebutter(src, length)
  Parameters:
    src (float)
    length (int)

twopoless(src, length)
  Parameters:
    src (float)
    length (int)

oneEuroFilter(src, minCutoff, beta, dCutoff)
  Parameters:
    src (float)
    minCutoff (float)
    beta (float)
    dCutoff (float)

ehlersSuperSmoother(src, length)
  Parameters:
    src (float)
    length (int)

ehlersHighPass(src, length)
  Parameters:
    src (float)
    length (int)

multiMABands(src, fastLen, midLen, slowLen, maType)
  Parameters:
    src (float)
    fastLen (simple int)
    midLen (simple int)
    slowLen (simple int)
    maType (string)

bossTrend(ma1, ma2, ma3)
  Parameters:
    ma1 (float)
    ma2 (float)
    ma3 (float)

momentumScore(src, lookback)
  Parameters:
    src (float)
    lookback (int)

Updated:
nzf(x, y)
  Parameters:
    x (float)
    y (float)

smma(src, length)
  Parameters:
    src (float)
    length (simple int)

t3(src, length, factor)
  Parameters:
    src (float)
    length (simple int)
    factor (float)

alma(src, length, offset, sigma)
  Parameters:
    src (float)
    length (int)
    offset (float)
    sigma (float)

kama(src, length, fastEnd, slowEnd)
  Parameters:
    src (float)
    length (int)
    fastEnd (float)
    slowEnd (float)

frama(src, length, FC, SC)
  Parameters:
    src (float)
    length (int)
    FC (int)
    SC (int)

Removed:
lerpColor(a, b, t)

themePick(name, t)

slopeThemeColor(src, theme, gain)

vma(src, length)

vama(src, length, volLookback)

oneEuro(src, minCut, beta, dCut)

rangeFilter(src, length, mult)

maSelect(src, length, kind, a1, a2, vlook)
Nota Keluaran
v4

Added:
maSelect(src, length, kind, opt1, opt2)
  Parameters:
    src (float)
    length (simple int)
    kind (string)
    opt1 (float)
    opt2 (float)

getMAList()
  Return array of MA names

Updated:
nzf(x, y)
  Safe nz replacement
  Parameters:
    x (float)
    y (float)

clamp(x, lo, hi)
  Clamp value between two limits
  Parameters:
    x (float)
    lo (float)
    hi (float)

normalize01(x, lo, hi)
  Normalize value to 0..1 range
  Parameters:
    x (float)
    lo (float)
    hi (float)

slope(src)
  1-bar slope
  Parameters:
    src (float)

slopeTicks(src)
  Slope in ticks
  Parameters:
    src (float)

bossGradient(isBull, layerIndex, totalLayers)
  Boss gradient color for ribbon fills
  Parameters:
    isBull (bool)
    layerIndex (int)
    totalLayers (int)

sma(src, length)
  Simple Moving Average
  Parameters:
    src (float)
    length (int)

ema(src, length)
  Exponential Moving Average
  Parameters:
    src (float)
    length (simple int)

wma(src, length)
  Weighted Moving Average
  Parameters:
    src (float)
    length (int)

hma(src, length)
  Hull Moving Average
  Parameters:
    src (float)
    length (simple int)

lsma(src, length)
  Linear Regression (Least Squares)
  Parameters:
    src (float)
    length (int)

smma(src, length)
  Wilder’s Smoothed Moving Average
  Parameters:
    src (float)
    length (simple int)

wwma(src, length)
  Wilder’s Weighted MA alias
  Parameters:
    src (float)
    length (simple int)

vwma(src, length)
  Volume Weighted Moving Average
  Parameters:
    src (float)
    length (int)

vwema(src, length)
  Volume Weighted EMA (Loxx style)
  Parameters:
    src (float)
    length (simple int)

ama(src, length, fastLength, slowLength)
  Adaptive Moving Average (AMA)
  Parameters:
    src (float)
    length (int)
    fastLength (int)
    slowLength (int)

mcginley(src, length)
  McGinley Dynamic
  Parameters:
    src (float)
    length (int)

mcNicholl(src, length)
  McNicholl MA
  Parameters:
    src (float)
    length (simple int)

leader(src, length)
  Leader EMA
  Parameters:
    src (float)
    length (int)

frama(src, length, FC, SC)
  FRAMA (Fractal Adaptive MA)
  Parameters:
    src (float)
    length (int)
    FC (int)
    SC (int)

Removed:
ahrma(src, length)

alxma(src, length)

dsema(src, length)

fema(src, length)

instant(src, alpha)

ilrs(src, length)

nonlagma(src, length)

pwma(src, length, power)

rmta(src, length)

decycler(src, length)

swma(src, length)

slwma(src, length)

super(src, length)

smoother(src, length)

tma(src, length)

zema(src, length)

zlagma(src, length)

threepolebuttfilt(src, length)

threepolesss(src, length)

twopolebutter(src, length)

twopoless(src, length)

oneEuroFilter(src, minCutoff, beta, dCutoff)

ehlersSuperSmoother(src, length)

ehlersHighPass(src, length)

multiMABands(src, fastLen, midLen, slowLen, maType)

bossTrend(ma1, ma2, ma3)

momentumScore(src, lookback)
Nota Keluaran
v5

Added:
oneEuroFilter(src, minCutoff, beta, dCutoff)
  Parameters:
    src (float)
    minCutoff (float)
    beta (float)
    dCutoff (float)

ehlersSuperSmoother(src, length)
  Parameters:
    src (float)
    length (int)

ehlersHighPass(src, length)
  Parameters:
    src (float)
    length (int)

bossTrend(ma1, ma2, ma3)
  Parameters:
    ma1 (float)
    ma2 (float)
    ma3 (float)

momentumScore(src, lookback)
  Parameters:
    src (float)
    lookback (int)

Removed:
getMAList()
  Return array of MA names

Penafian

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.