• Produk
  • Komuniti
  • Pasaran
  • Broker
  • Lebih
Mulakan
  • Komuniti
  • /Penunjuk dan strategi
  • /Ticker

Ticker

composite_ticker_cleanerLibrary "composite_ticker_cleaner" Extract a clean symbol from a composite ticker. E.g., (BINANCE:BTCUSD+KRAKEN:BTCUSD)/2 as input will return BTCUSD or BINANCE:BTCUSD composite_ticker_cleaner_extract_first(symbol, keepexchange)   Extract the first symbol out of the supplied string (usually ticker.standard(syminfo.tickerid) )   Parameters:      symbol : string input string to search in      keepexchange : bool (optional) Keep exchange in the returned ticker? By default, we only return the symbol without the exchange.   Returns: first occurrence of a symbol composite_ticker_cleaner_extract_first(keepexchange)   Extract the first symbol out of the current tickerid (as provided by ticker.standard(syminfo.tickerid) )   Parameters:      keepexchange : bool (optional) Keep exchange in the returned ticker? By default, we only return the symbol without the exchange.   Returns: first occurrence of a symbol in the current tickerid This is inspired by the work I did on this indicator: I needed a similar functionality in another script, so instead of duplicating code, I thought generalizing the process in a library could be helpful for me and others, and will be easier to maintain and upgrade with new features if I need to.
Perpustakaan Pine Script®
oleh tartigradia
Telah dikemas kini
22

Pilih data pasaran disediakan oleh perkhidmatan Data ICE. Pilih data rujukan disediakan oleh FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Bukan sekadar produk
  • Carta Super
Penyaring
  • Saham
  • ETF
  • Bon
  • Syiling kripto
  • Pasangan Kripto
  • Pasangan CEX
  • Pasangan DEX
  • Pine
Peta Suhu
  • Saham
  • ETF
  • Kripto
Kalendar
  • Ekonomi
  • Perolehan
  • Dividen
Lebih produk
  • Keluk hasil
  • Opsyen
  • Aliran Berita
  • Pine Script®
  • Sparks
Aplikasi
  • Mudah alih
  • Atas meja
Alatan & langganan
  • Ciri
  • Penentuan Harga
  • Data pasaran
Tawaran istimewa
  • Hadapan CME Group
  • Hadapan Eurex
  • Himpunan saham AS
Mengenai syarikat
  • Siapa kami
  • Manifesto
  • Atlet
  • Blog
  • Kerjaya
  • Kit media
Barangan
  • Kedai TradingView
  • Kad tarot untuk pedagang
Polisi & keselamatan
  • Terma Penggunaan
  • Penafian
  • Dasar Privasi
  • Polisi Kuki
  • Kenyataan Kebolehcapaian
  • Kerentanan keselamatan
  • Halaman Status
Komuniti
  • Rangkaian sosial
  • Dinding Kasih
  • Rujuk rakan
  • Peraturan Dalaman
  • Moderator
Idea
  • Dagangan
  • Pendidikan
  • Pilihan Editor
Skrip Pine
  • Penunjuk & strategi
  • Pakar
  • Freelancer
Penyelesaian perniagaan
  • Widget
  • Perpustakaan pencartaan
  • Lightweight Charts™
  • Carta Termaju
  • Platform Dagangan
Peluang pertumbuhan
  • Pengiklanan
  • Integrasi brokeraj
  • Program rakan kongsi
  • Program pendidikan
Look FirstLook First