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
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.

Disclaimer

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.

Want to use this library?

Copy the following line and paste it in your script.