PINE LIBRARY
TargetExcursionQueueLib

Library "TargetExcursionQueueLib"
helper lib for targetExcursionLib
f_queue_new(horizon)
Construct a fixed ring. Horizon is clamped to the supported 1..198 range.
Parameters:
horizon (int)
method advance(queue, pathHigh, pathLow, pathClose, pathValid, currentBar)
Update every unresolved path with this confirmed chart bar and
resolve the oldest origin exactly H chart bars after it was accepted.
Invalid path bars invalidate the affected target instead of hiding a gap.
Namespace types: PendingQueue
Parameters:
queue (PendingQueue)
pathHigh (float)
pathLow (float)
pathClose (float)
pathValid (bool)
currentBar (int)
method enqueue(queue, direction, origin, scale, currentBar)
Freeze one valid, non-neutral origin after older origins have advanced.
Namespace types: PendingQueue
Parameters:
queue (PendingQueue)
direction (int)
origin (float)
scale (float)
currentBar (int)
PendingOrigin
Fields:
originBar (series int)
resolutionBar (series int)
direction (series int)
origin (series float)
scale (series float)
maxHigh (series float)
minLow (series float)
pathComplete (series bool)
ResolvedExcursion
Fields:
resolved (series bool)
valid (series bool)
timingExact (series bool)
originBar (series int)
resolutionBar (series int)
direction (series int)
origin (series float)
scale (series float)
mae (series float)
mfe (series float)
closeReturn (series float)
directionalCloseReturn (series float)
PendingQueue
Fields:
slots (array<PendingOrigin>)
capacity (series int)
horizon (series int)
readHead (series int)
writeHead (series int)
count (series int)
acceptedCount (series int)
resolvedCount (series int)
invalidResolvedCount (series int)
lastResolvedBar (series int)
helper lib for targetExcursionLib
f_queue_new(horizon)
Construct a fixed ring. Horizon is clamped to the supported 1..198 range.
Parameters:
horizon (int)
method advance(queue, pathHigh, pathLow, pathClose, pathValid, currentBar)
Update every unresolved path with this confirmed chart bar and
resolve the oldest origin exactly H chart bars after it was accepted.
Invalid path bars invalidate the affected target instead of hiding a gap.
Namespace types: PendingQueue
Parameters:
queue (PendingQueue)
pathHigh (float)
pathLow (float)
pathClose (float)
pathValid (bool)
currentBar (int)
method enqueue(queue, direction, origin, scale, currentBar)
Freeze one valid, non-neutral origin after older origins have advanced.
Namespace types: PendingQueue
Parameters:
queue (PendingQueue)
direction (int)
origin (float)
scale (float)
currentBar (int)
PendingOrigin
Fields:
originBar (series int)
resolutionBar (series int)
direction (series int)
origin (series float)
scale (series float)
maxHigh (series float)
minLow (series float)
pathComplete (series bool)
ResolvedExcursion
Fields:
resolved (series bool)
valid (series bool)
timingExact (series bool)
originBar (series int)
resolutionBar (series int)
direction (series int)
origin (series float)
scale (series float)
mae (series float)
mfe (series float)
closeReturn (series float)
directionalCloseReturn (series float)
PendingQueue
Fields:
slots (array<PendingOrigin>)
capacity (series int)
horizon (series int)
readHead (series int)
writeHead (series int)
count (series int)
acceptedCount (series int)
resolvedCount (series int)
invalidResolvedCount (series int)
lastResolvedBar (series int)
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Thư viện Pine
Theo đúng tinh thần TradingView, tác giả đã công bố mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác trong cộng đồng có thể tái sử dụng. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này cho mục đích cá nhân hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc tái sử dụng mã này trong các ấn phẩm phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.