PINE LIBRARY

c0

Güncellendi
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)
Sürüm Notları
v2

Updated:
ma(src, len, mode)
  Parameters:
    src (float)
    len (int)
    mode (string)
Sürüm Notları
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)
Sürüm Notları
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

Pine kitaplığı

Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazar çok yaşa! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanılması Ev kuralları tarafından yönetilir.

Feragatname