PINE LIBRARY

SIL

Library "SIL"

mean_src(x, y)
  calculates moving average : x is the source of price (OHLC) & y = the lookback period
  Parameters:
    x
    y

stan_dev(x, y, z)
  calculates standard deviation, x = source of price (OHLC), y = the average lookback, z = average given prior two float and intger inputs, call the f_avg_src() function in f_stan_dev()
  Parameters:
    x
    y
    z

vawma(x, y)
  calculates volume weighted moving average, x = source of price (OHLC), y = loookback period
  Parameters:
    x
    y

gethurst(x, y, z)
  calculates the Hurst Exponent and Hurst Exponent average, x = source of price (OHLC), y = lookback period for Hurst Exponent Calculation, z = lookback period for average Hurst Exponent
  Parameters:
    x
    y
    z
MATHstatisticstechindicator

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