PINE LIBRARY
Updated

GLLV_Helpers

479
Library "GLLV_Helpers"

buildAlertMsg(pineLic, ticker, risk, sl, tp, strategyCode)
  Parameters:
    pineLic (string)
    ticker (string)
    risk (float)
    sl (float)
    tp (float)
    strategyCode (string)

isRising(src, points, step)
  Parameters:
    src (float)
    points (int)
    step (int)

regimeOf(pip2, posLimit, negLimit)
  Parameters:
    pip2 (float)
    posLimit (float)
    negLimit (float)

calcMata(fast, mid, slow)
  Parameters:
    fast (float)
    mid (float)
    slow (float)

crossUpByColor(src, ema, pvsraColor, expectedColor)
  Parameters:
    src (float)
    ema (float)
    pvsraColor (color)
    expectedColor (color)

crossDownByColor(src, ema, pvsraColor, expectedColor)
  Parameters:
    src (float)
    ema (float)
    pvsraColor (color)
    expectedColor (color)

calcSlope(src, length, mult, method)
  Parameters:
    src (float)
    length (simple int)
    mult (float)
    method (string)

createDebugTable()

updateDebugTable(tbl, row, label, value)
  Parameters:
    tbl (table)
    row (int)
    label (string)
    value (string)
Release Notes
v2
Release Notes
v3

Added:
isBodyLessThanWicksPercent(o, h, l, c, pct)
  Parameters:
    o (float)
    h (float)
    l (float)
    c (float)
    pct (float)
Release Notes
v4

Added:
isRisingFast(src, points, step)
  Parameters:
    src (float)
    points (int)
    step (int)

regimeCounts(pip2, posLimit, negLimit, lookback)
  Parameters:
    pip2 (float)
    posLimit (float)
    negLimit (float)
    lookback (int)
Release Notes
v5

Added:
ma(src, length, type)
  Parameters:
    src (float)
    length (simple int)
    type (string)

directionColor(up, down, upColor, downColor, neutral)
  Parameters:
    up (bool)
    down (bool)
    upColor (color)
    downColor (color)
    neutral (color)

calcRsi(src, length, maType, maLen)
  Parameters:
    src (float)
    length (simple int)
    maType (string)
    maLen (simple int)

calcWillr(src, length, maType, maLen)
  Parameters:
    src (float)
    length (int)
    maType (string)
    maLen (simple int)
Release Notes
v6

Updated:
buildAlertMsg(pineLic, action, ticker, risk, sl, tp, strategyCode)
  Parameters:
    pineLic (string)
    action (string)
    ticker (string)
    risk (float)
    sl (float)
    tp (float)
    strategyCode (string)

Removed:
ma(src, length, type)
Release Notes
v7

Added:
buildAlertMsgtrl(pineLic, action, ticker, risk, sl, tp, trltrig, trldist, trlstep, strategyCode)
  Parameters:
    pineLic (string)
    action (string)
    ticker (string)
    risk (float)
    sl (float)
    tp (float)
    trltrig (float)
    trldist (float)
    trlstep (float)
    strategyCode (string)

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.