PINE LIBRARY

math

Library "math"
TODO: Math custom MA and more

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

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

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

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

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

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

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

pine_wma(x, y)
  Parameters:
    x (float)
    y (int)

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

pine_vwma(x, y)
  Parameters:
    x (float)
    y (int)

pine_swma(x)
  Parameters:
    x (float)

pine_alma(src, length, offset, sigma)
  Parameters:
    src (float)
    length (int)
    offset (float)
    sigma (float)
MATH

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.


Also on:

Disclaimer