PINE LIBRARY

OutofOptionsHelperLibrary

Mis à jour
Library "OutofOptionsHelperLibrary"
Helper library for my indicators/strategies

isUp(i)
  is Up candle
  Parameters:
    i (int)
  Returns: bool

isDown(i)
  is Down candle
  Parameters:
    i (int)
  Returns: bool

TF(t)
  format time into date/time string
  Parameters:
    t (int)
  Returns: string

S(s)
  format data to string
  Parameters:
    s (float)
  Returns: string

S(s)
  format data to string
  Parameters:
    s (int)
  Returns: string

S(s)
  format data to string
  Parameters:
    s (bool)
  Returns: string

barClose(price, up, strict)
  Determine if candle closed above/below price
  Parameters:
    price (float)
    up (bool)
    strict (bool): bool if close over is required or if close at the price is good enough
  Returns: bool

processSweep(L, price, up, leftB)
  Determine how many liquidity sweeps were made
  Parameters:
    L (array<liquidity>)
    price (float)
    up (bool)
    leftB (int)
  Returns: int

liquidity
  Fields:
    price (series float)
    time (series int)
    oprice (series float)
    otime (series int)
    sweeps (series int)
    bars_swept (series int)
Notes de version
v2

Added:
oneBar()
  number of milliseconds in one bar
  Returns: int

enforceTimeLimit(timeLimits)
  Checks if time is within a restricted list of times that are delimited by new line
  Parameters:
    timeLimits (string)
  Returns: bool

nearestSwing(startTime, bullish, max_tp_price, min_price)
  Parameters:
    startTime (int)
    bullish (bool)
    max_tp_price (float)
    min_price (float)
  Returns: liquidity

inSession(session_range)
  Parameters:
    session_range (string)
  Returns: bool
Notes de version
v3
Notes de version
v4
Notes de version
v5
Notes de version
v6
Notes de version
v7
Notes de version
v8

Added:
avg(a, b)
  Parameters:
    a (float)
    b (float)
  Returns: float
Notes de version
v9
Notes de version
v10
Notes de version
v11
debuggingMATHstrings

Bibliothèque Pine

Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.

Clause de non-responsabilité