PINE LIBRARY
Cập nhật SNIFOFF_51_Lang3

Library "SNIFOFF_51_Lang3"
Multilingual translation layer (Group 3) for Smart Trader, SNIF-OFF 5.1, Trade Finder.
Provides 9 exported functions covering the Trade Finder and Signal Health dashboard rows,
the S17/S18/S19 volume scenarios, the PROVISIONAL badge, the Native footprint texts,
12 tooltips, and 4 helper affixes.
All 7 languages live in this single library; SNIFOFF_51_Lang and SNIFOFF_51_Lang2 stay frozen.
f_trVol3(en, lang)
Translates the S17/S18/S19 volume scenario labels.
Parameters:
en (string): The English scenario label from f_volScenarioMsg (S17/S18/S19 keys only).
lang (string): The dashboard language selected by the user.
Returns: The translated scenario label. Unmapped inputs return unchanged.
f_volNarr3(sid, deltaDir, liveAlert, lang)
Builds the S17/S18/S19 volume narrative with optional live-spike overlay.
Parameters:
sid (string): Scenario ID: "S17", "S18", or "S19". Any other ID returns "".
deltaDir (int): Anchored delta direction (+1 buyers, -1 sellers, 0 balanced) — S17 wording.
liveAlert (bool): Explosive bar [0] volume spike flag (Live Exception protocol).
lang (string): The dashboard language selected by the user.
Returns: The multi-line narrative string, or "" for unknown scenario IDs.
f_trBadge3(en, lang)
Translates the Signal Health PROVISIONAL badge.
Parameters:
en (string): The English badge label ("◌ PROVISIONAL").
lang (string): The dashboard language selected by the user.
Returns: The translated badge label. Unmapped inputs return unchanged.
f_trTitle3(en, lang)
Translates the Trade Finder and Signal Health section titles.
Parameters:
en (string): The English section title.
lang (string): The dashboard language selected by the user.
Returns: The translated section title. Unmapped inputs return unchanged.
f_trTf(en, lang)
Translates Trade Finder and Signal Health state and watch labels.
Parameters:
en (string): The English state or watch label.
lang (string): The dashboard language selected by the user.
Returns: The translated label. Unmapped inputs return unchanged.
f_tfNarrative(state, dir, consensus, lang)
Builds the Trade Finder narrative row text.
Parameters:
state (int): State code 1..10 (see section header for the mapping).
dir (int): Composite pressure direction (+1 bullish, -1 bearish, 0 flat).
consensus (int): Number of dimensions agreeing with the composite direction (0-5).
lang (string): The dashboard language selected by the user.
Returns: The narrative string for the Trade Finder dashboard row.
f_trTipTf(key, lang)
Returns translated tooltip text for Trade Finder and Signal Health cells.
Parameters:
key (string): Tooltip key identifier (see section header for valid keys).
lang (string): The dashboard language selected by the user.
Returns: The translated tooltip string. Empty string for unknown keys.
f_trInline3(key, lang)
Returns translated helper affixes used inside composed dashboard strings.
Parameters:
key (string): Affix key identifier: agree_sfx, live_sfx, bull_pfx, bear_pfx.
lang (string): The dashboard language selected by the user.
Returns: The translated affix string. Empty string for unknown keys.
f_trTipFp3(key, lang)
Returns Native-footprint display texts for the dashboard.
Parameters:
key (string): Text key: fp_title_nat, fp_lock_nat, fp_lock_tip_nat, fp_badge_nat.
lang (string): The dashboard language selected by the user.
Returns: The translated text. Empty string for unknown keys.
Multilingual translation layer (Group 3) for Smart Trader, SNIF-OFF 5.1, Trade Finder.
Provides 9 exported functions covering the Trade Finder and Signal Health dashboard rows,
the S17/S18/S19 volume scenarios, the PROVISIONAL badge, the Native footprint texts,
12 tooltips, and 4 helper affixes.
All 7 languages live in this single library; SNIFOFF_51_Lang and SNIFOFF_51_Lang2 stay frozen.
f_trVol3(en, lang)
Translates the S17/S18/S19 volume scenario labels.
Parameters:
en (string): The English scenario label from f_volScenarioMsg (S17/S18/S19 keys only).
lang (string): The dashboard language selected by the user.
Returns: The translated scenario label. Unmapped inputs return unchanged.
f_volNarr3(sid, deltaDir, liveAlert, lang)
Builds the S17/S18/S19 volume narrative with optional live-spike overlay.
Parameters:
sid (string): Scenario ID: "S17", "S18", or "S19". Any other ID returns "".
deltaDir (int): Anchored delta direction (+1 buyers, -1 sellers, 0 balanced) — S17 wording.
liveAlert (bool): Explosive bar [0] volume spike flag (Live Exception protocol).
lang (string): The dashboard language selected by the user.
Returns: The multi-line narrative string, or "" for unknown scenario IDs.
f_trBadge3(en, lang)
Translates the Signal Health PROVISIONAL badge.
Parameters:
en (string): The English badge label ("◌ PROVISIONAL").
lang (string): The dashboard language selected by the user.
Returns: The translated badge label. Unmapped inputs return unchanged.
f_trTitle3(en, lang)
Translates the Trade Finder and Signal Health section titles.
Parameters:
en (string): The English section title.
lang (string): The dashboard language selected by the user.
Returns: The translated section title. Unmapped inputs return unchanged.
f_trTf(en, lang)
Translates Trade Finder and Signal Health state and watch labels.
Parameters:
en (string): The English state or watch label.
lang (string): The dashboard language selected by the user.
Returns: The translated label. Unmapped inputs return unchanged.
f_tfNarrative(state, dir, consensus, lang)
Builds the Trade Finder narrative row text.
Parameters:
state (int): State code 1..10 (see section header for the mapping).
dir (int): Composite pressure direction (+1 bullish, -1 bearish, 0 flat).
consensus (int): Number of dimensions agreeing with the composite direction (0-5).
lang (string): The dashboard language selected by the user.
Returns: The narrative string for the Trade Finder dashboard row.
f_trTipTf(key, lang)
Returns translated tooltip text for Trade Finder and Signal Health cells.
Parameters:
key (string): Tooltip key identifier (see section header for valid keys).
lang (string): The dashboard language selected by the user.
Returns: The translated tooltip string. Empty string for unknown keys.
f_trInline3(key, lang)
Returns translated helper affixes used inside composed dashboard strings.
Parameters:
key (string): Affix key identifier: agree_sfx, live_sfx, bull_pfx, bear_pfx.
lang (string): The dashboard language selected by the user.
Returns: The translated affix string. Empty string for unknown keys.
f_trTipFp3(key, lang)
Returns Native-footprint display texts for the dashboard.
Parameters:
key (string): Text key: fp_title_nat, fp_lock_nat, fp_lock_tip_nat, fp_badge_nat.
lang (string): The dashboard language selected by the user.
Returns: The translated text. Empty string for unknown keys.
Phát hành các Ghi chú
v2Added:
f_cmTip(kind, sigCode, align, convCode, coupName, momCode, volName, score, consensus, bullScr, bearScr, trace, contDir, domScr, prevScr, lang)
Builds the confluence mark tooltip for chart labels.
Parameters:
kind (int): Mark kind: +1 bullish, -1 bearish, 0 indecision (tie).
sigCode (int): Trend signal code 5..10 (gate G1 guarantees the range on mark bars).
align (int): Multi-scale alignment score (-6..+6).
convCode (int): Conviction code: 1 HIGH, 2 MODERATE, 3 LOW.
coupName (string): Pre-translated efficiency coupling label (E01-E19).
momCode (int): Momentum code: 1 Accelerating, 2 Sharpening, 3 Steady, 4 Fading.
volName (string): Pre-translated volume scenario label (S1-S19).
score (float): Composite confluence score (-100..+100).
consensus (int): Trend-coherent consensus count (0..5).
bullScr (float): Jordan bull score (0..100).
bearScr (float): Jordan bear score (0..100, positive magnitude).
trace (float): Gram-matrix trace, total activation (0..5).
contDir (int): Continuation direction: 0 birth or indecision (no extra line), +1/-1 same-direction continuation.
domScr (float): Dominant score of this mark (continuation comparison).
prevScr (float): Dominant score of the previous same-direction mark.
lang (string): The dashboard language selected by the user.
Returns: The complete multi-line tooltip string.
f_rvTip(bull, rvClass, prevPeak, vel, score, lang)
Builds the reversal (REV) label tooltip for chart labels.
Parameters:
bull (bool): True for a bullish reversal, false for a bearish one.
rvClass (int): Classifier class: 1 Climactic, 2 Accumulation (bull) / Distribution (bear), 3 Exhaustion, 4 Rotation.
prevPeak (float): Peak |score| of the finished episode (depth feature).
vel (float): First-order score difference on the reversal bar (crossing velocity).
score (float): Composite pressure score on the reversal bar.
lang (string): The dashboard language selected by the user.
Returns: The complete multi-line tooltip string.
f_rtTip(bull, score, trendTh, bars, lang)
Builds the trend confirmation (TREND) label tooltip for chart labels.
Parameters:
bull (bool): True for a bullish trend confirmation, false for a bearish one.
score (float): Composite pressure score on the confirmation bar.
trendTh (float): Trend Confirmation Level (the user's RS_TREND_TH input).
bars (int): Bars elapsed since the reversal that opened the episode.
lang (string): The dashboard language selected by the user.
Returns: The complete multi-line tooltip string.
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.
Measuring markets through Volume Dynamics & Geometric Frameworks.
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
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.
Measuring markets through Volume Dynamics & Geometric Frameworks.
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
For invite-only script access, DM on TradingView or via x.com/sabanci_ata
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.