PanosSmtUtils

439
A small library of pure, self-contained helper functions factored out of my own indicators (Sequence°), published for reuse.

pairFor(ticker, prefix) — resolves a correlated asset for SMT/PSP-style divergence checks. Current coverage:

Index futures: ES/NQ, YM, RTY + micros (MES/MNQ/MYM/M2K)
Crypto futures: BTC/ETH + micros (MBT/MET)
Metals futures: GC/SI + micros (MGC/SIL)
Energy futures: CL (WTI) ↔ BZ (Brent)
Rate futures: ZB (30Y) ↔ ZN (10Y)
Broker CFD/forward indices: NAS100 ↔ US500/SPX500 (keeps the chart’s own exchange prefix, e.g. PEPPERSTONE:NAS100F → PEPPERSTONE:US500F)
Gold/Silver spot CFD: XAUUSD ↔ XAGUSD
FX majors: EURUSD ↔ GBPUSD, AUDUSD ↔ NZDUSD

Every pair returned moves in the same direction as the input symbol (correlated, not inverse). Returns "" for anything not in the registry — equities/stocks and most FX crosses aren’t covered yet.

tablePosition(vert, horz) — maps a “Top/Middle/Bottom” + “Left/Center/Right” dropdown pair to a position.* constant.

textSize(label) — maps “Tiny/Small/Normal/Large” to a size.* constant.

xor(a, b) — true when exactly one of two conditions is true.

No request.security(), no external dependencies.

Disclaimer: This library provides mechanical symbol-lookup helpers only — it does not generate trading signals, predictions, or recommendations of any kind. The correlation pairs listed are based on commonly cited ICT/SMC conventions (not guaranteed, verified, or complete for every asset class — notably, equities/stocks and most FX crosses are not yet in the registry). Always verify a pair matches your own market/broker before relying on it. For educational and informational use only; not financial advice. Use at your own risk — I (Panos1389) am not responsible for any trading losses resulting from its use.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.