PINE LIBRARY
Telah dikemas kini OutofOptionsHelperLibrary

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)
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)
Nota Keluaran
v2Added:
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
Nota Keluaran
v3Nota Keluaran
v4Nota Keluaran
v5Nota Keluaran
v6Nota Keluaran
v7Nota Keluaran
v8Added:
avg(a, b)
Parameters:
a (float)
b (float)
Returns: float
Nota Keluaran
v9Nota Keluaran
v10Nota Keluaran
v11Nota Keluaran
v12Added:
lineStyleTextToVal(val)
Parameters:
val (string)
Nota Keluaran
v13Updated:
TF(t, timeOnly)
format time into date/time string
Parameters:
t (int)
timeOnly (bool)
Returns: string
Nota Keluaran
v14Added:
lineStyle(s)
Parameters:
s (series ln)
Nota Keluaran
v15Added:
getDuration(s, e)
Parameters:
s (int)
e (int)
Nota Keluaran
v16Added:
formatTimeframe()
Nota Keluaran
v17Added:
devToArray(dev)
Parameters:
dev (string)
getDev(d, bull, h, l)
Parameters:
d (float)
bull (bool)
h (float)
l (float)
Nota Keluaran
v18Make timezone exportable const
Nota Keluaran
v19Perpustakaan Pine
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Penafian
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.
Perpustakaan Pine
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Penafian
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.