PINE LIBRARY

FastMetrix

168
Library "FastMetrix"

This is a library I've been tweaking and working with for a while and I find it useful to get valuable technical analysis metrics faster (why its called FastMetrix). A lot of is personal to my trading style, so sorry if it does not have everything you want. The way I get my variables from library to script is by copying the return function into my new script.

TODO: Volatility and short term price analysis functions

slope(source, smoothing)
  Parameters:
    source (float)
    smoothing (int)

integral(topfunction, bottomfunction, start, end)
  Parameters:
    topfunction (float)
    bottomfunction (float)
    start (int)
    end (int)

deviation(x, y)
  Parameters:
    x (float)
    y (float)

getema(len)
  TODO: return important exponential long term moving averages and derivatives/variables
  Parameters:
    len (simple int)

getsma(len)
  TODO: return requested sma
  Parameters:
    len (int)

kc(mult, len)
  TODO: Return Keltner Channels variables and calculations
  Parameters:
    mult (simple float)
    len (simple int)

bollinger(len, mult)
  TODO: returns bollinger bands with optimal settings
  Parameters:
    len (int)
    mult (simple float)

volatility(atrlen, smoothing)
  TODO: Returns volatility indicators based on atr
  Parameters:
    atrlen (simple int)
    smoothing (int)

premarketfib()

countinday(xcondition)
  Parameters:
    xcondition (bool)

countinsession(condition, n)
  Parameters:
    condition (bool)
    n (int)

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.