PINE LIBRARY

FastMetrix

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

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.