• Produtos
  • Comunidade
  • Mercados
  • Corretoras
  • Mais
Começar
  • Comunidade
  • /
  • /Cleaner

Cleaner

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.
Biblioteca Pine Script®
por tartigradia
Atualizado Маr 19, 2023
22

Dados de mercado selecionados fornecidos pela ICE Data services. Dados de referência fornecidos pela FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Mais do que um produto
  • Supergráficos
Rastreadores
  • Ações
  • ETFs
  • Títulos
  • Criptomoedas
  • Pares de cripto
  • Pares CEX
  • Pares DEX
  • Pine
Mapas de Calor
  • Ações
  • ETFs
  • Cripto
Calendários
  • Economia
  • Resultados
  • Dividendos
Mais produtos
  • Curva de juros
  • Opções
  • News Flow
  • Pine Script®
  • Sparks
Apps
  • Dispositivo Móvel
  • Desktop
Ferramentas & assinaturas
  • Recursos
  • Preços
  • Dados de mercado
Ofertas especiais
  • Futuros do CME Group
  • Futuros Eurex
  • Conjunto de ações EUA
Sobre a empresa
  • Quem somos
  • Manifesto
  • Atletas
  • Blog
  • Carreiras
  • Media kit
Merchan
  • Loja TradingView
  • Cartas de Tarô para traders
Políticas & segurança
  • Termos de Uso
  • Aviso legal
  • Política de Privacidade
  • Política de Cookies
  • Declaração de Acessibilidade
  • Vulnerabilidade de segurança
  • Página de Status
Comunidade
  • Rede social
  • Mural do Amor
  • Indique um Amigo
  • Regras da Casa
  • Moderadores
Ideias
  • Trade
  • Educacional
  • Sugestão da Casa
Pine Script
  • Indicadores & estratégias
  • Wizards
  • Freelancers
Soluções para negócios
  • Widgets
  • Bibliotecas de gráficos
  • Lightweight Charts™
  • Gráficos Avançados
  • Plataforma de Negociação
Oportunidades de crescimento
  • Anúncios
  • Integração de Corretoras
  • Programa de Parceria
  • Programa educacional
Look FirstLook First