PINE LIBRARY

c0

Diupdate
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)
Catatan Rilis
v2

Updated:
ma(src, len, mode)
  Parameters:
    src (float)
    len (int)
    mode (string)
Catatan Rilis
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)
Catatan Rilis
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

Dengan semangat TradingView yang sesungguhnya, penulis telah menerbitkan Kode Pine ini sebagai pustaka sumber terbuka sehingga programmer Pine lain dari komunitas kami dapat menggunakannya kembali. Hormat untuk penulis! Anda dapat menggunakan pustaka ini secara pribadi atau dalam publikasi sumber terbuka lainnya, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib.

Pernyataan Penyangkalan