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.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.