PINE LIBRARY
Cập nhật 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)
Phát hành các Ghi chú
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
Phát hành các Ghi chú
v3Phát hành các Ghi chú
v4Phát hành các Ghi chú
v5Phát hành các Ghi chú
v6Phát hành các Ghi chú
v7Phát hành các Ghi chú
v8Added:
avg(a, b)
Parameters:
a (float)
b (float)
Returns: float
Phát hành các Ghi chú
v9Phát hành các Ghi chú
v10Phát hành các Ghi chú
v11Phát hành các Ghi chú
v12Added:
lineStyleTextToVal(val)
Parameters:
val (string)
Phát hành các Ghi chú
v13Updated:
TF(t, timeOnly)
format time into date/time string
Parameters:
t (int)
timeOnly (bool)
Returns: string
Phát hành các Ghi chú
v14Added:
lineStyle(s)
Parameters:
s (series ln)
Phát hành các Ghi chú
v15Added:
getDuration(s, e)
Parameters:
s (int)
e (int)
Phát hành các Ghi chú
v16Added:
formatTimeframe()
Phát hành các Ghi chú
v17Added:
devToArray(dev)
Parameters:
dev (string)
getDev(d, bull, h, l)
Parameters:
d (float)
bull (bool)
h (float)
l (float)
Phát hành các Ghi chú
v18Make timezone exportable const
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.