PINE LIBRARY

c0

Telah dikemas kini
Library "c0"

strToInt(s)
  Parameters:
    s (string)

strCount(s, ss)
  Parameters:
    s (string)
    ss (string)

strPart(str, index, delim)
  Parameters:
    str (string)
    index (int)
    delim (string)

compareValues(left, op, right)
  Parameters:
    left (float)
    op (string)
    right (float)

parseIndex(ind)
  Parameters:
    ind (string)

parseFn(input, argsSep)
  Parameters:
    input (string)
    argsSep (string)

isCurrentBar(ts)
  Parameters:
    ts (int)

lastBars(num)
  Parameters:
    num (int)

isHigherTf(tf)
  Parameters:
    tf (string)

isNewInterval(tf)
  Parameters:
    tf (string)

isRealtime()

tfMultiplier(tf)
  Parameters:
    tf (string)

tfStep(step, tf)
  Parameters:
    step (int)
    tf (string)

relativeTime(dRel, mRel, yRel, ts)
  Parameters:
    dRel (int)
    mRel (int)
    yRel (int)
    ts (int)

timeToBar(ts, abs)
  Parameters:
    ts (int)
    abs (bool)

plotVline(ts, color, style, y1, y2)
  Parameters:
    ts (int)
    color (color)
    style (string)
    y1 (int)
    y2 (int)

hasVolume()

isBull(offset)
  Parameters:
    offset (int)

candleAvg(length, offset)
  Parameters:
    length (int)
    offset (int)

ma(src, len, mode)
  Parameters:
    src (float)
    len (simple int)
    mode (string)

slope(src, lookback, threshold)
  Parameters:
    src (float)
    lookback (int)
    threshold (float)

bullDiv(src1, src2, depth)
  Parameters:
    src1 (float)
    src2 (float)
    depth (int)

bearDiv(src1, src2, depth)
  Parameters:
    src1 (float)
    src2 (float)
    depth (int)

----------------

Logger
  Fields:
    labels (map<int, label>)
    tables (map<string, table>)
    tablesMeta (map<string, string>)
    bgColor (series color)
    txtColor (series color)
    txtSize (series string)

method logBar(this, input, bar, y)
  Namespace types: Logger
  Parameters:
    this (Logger)
    input (string)
    bar (int)
    y (float)

method logTable(this, row, pos, maxRows)
  Namespace types: Logger
  Parameters:
    this (Logger)
    row (array<string>)
    pos (string)
    maxRows (int)
Nota Keluaran
v2

Updated:
ma(src, len, mode)
  Parameters:
    src (float)
    len (int)
    mode (string)
Nota Keluaran
v3

Added:
compareRange(val, lo, hi)
  Parameters:
    val (float)
    lo (float)
    hi (float)

compareRangeStr(val, rStr)
  Parameters:
    val (float)
    rStr (string)

nonZeroDecimals(src, max)
  Parameters:
    src (float)
    max (int)

withinLastBars(num)
  Parameters:
    num (int)

Removed:
lastBars(num)
Nota Keluaran
v4

Updated:
method logBar(this, input, bar, y, bgColor, txtColor, txtSize)
  Namespace types: Logger
  Parameters:
    this (Logger)
    input (string)
    bar (int)
    y (float)
    bgColor (color)
    txtColor (color)
    txtSize (string)

method logTable(this, row, position, bgColor, bdrColor, txtColor, txtSize)
  Namespace types: Logger
  Parameters:
    this (Logger)
    row (array<string>)
    position (string)
    bgColor (color)
    bdrColor (color)
    txtColor (color)
    txtSize (string)

Logger
  Fields:
    labels (map<int, label>)
    tables (map<string, table>)
    tablesMeta (map<string, string>)
    maxRows (series int)
    bgColor (series color)
    txtColor (series color)
    txtSize (series string)
debugging

Perpustakaan Pine

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai satu perpustakaan sumber terbuka supaya pengaturcara Pine lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau dalam penerbitan sumber terbuka lain, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman.

Penafian