PINE LIBRARY

FastMetrix

63
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)

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.