PINE LIBRARY

DynamicMAs

Updated
Library "DynamicMAs"
Custom MA's that allow a dynamic calculation beginning from the first bar, irrespective of lookback period.

SMA(src, length)
  Dynamic SMA
  Parameters:
    src (float)
    length (int)

EMA(src, length)
  Dynamic EMA
  Parameters:
    src (float)
    length (int)

DEMA(src, length)
  Dynamic DEMA
  Parameters:
    src (float)
    length (int)

TEMA(src, length)
  Dynamic TEMA
  Parameters:
    src (float)
    length (int)

WMA(src, length)
  Dynamic WMA
  Parameters:
    src (float)
    length (int)

HMA(src, length)
  Dynamic HMA
  Parameters:
    src (float)
    length (int)

VWMA(src, length)
  Dynamic VWMA
  Parameters:
    src (float)
    length (int)

SMMA(src, length)
  Dynamic SMMA
  Parameters:
    src (float)
    length (int)

LSMA(src, length)
  Dynamic LSMA
  Parameters:
    src (float)
    length (int)

ALMA(src, length, offset_sigma, sigma)
  Dynamic ALMA
  Parameters:
    src (float)
    length (int)
    offset_sigma (float)
    sigma (float)

HyperMA(src, length)
  Dynamic HyperbolicMA
  Parameters:
    src (float)
    length (int)
Release Notes
v2 - able to handle 'na' values

Added:
RMA(src, length)
  Dynamic RMA
  Parameters:
    src (float)
    length (int)
adaptivelookbackinputsMATHmoving_averagetechindicator

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.


No statements or claims aim to be financial advice,
neither are any signals from us or our indicators.


Want to learn Trading, Investing or system building?
Join the Community! 👇

discord.gg/FMZDM3bZ9T
Also on:

Disclaimer