PanosSmtUtils

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.
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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。