• Productos
  • Comunidad
  • Mercados
  • Brokers
  • Más
Empiece
  • Comunidad
  • /Indicadores y estrategias
  • /Regularexpression

Regularexpression

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
Actualizado
22

Seleccione los datos de mercado proporcionados por ICE Data services. Seleccione los datos de referencia proporcionados por FactSet. Derechos de autor © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Más que un producto
  • Supergráficos
Analizadores
  • Acciones
  • ETF
  • Bonos
  • Criptomonedas
  • Pares CEX
  • Pares DEX
  • Pine
Mapas de calor
  • Acciones
  • ETF
  • Cripto
Calendarios
  • Económico
  • Beneficios
  • Dividendos
Más productos
  • Curvas de rendimiento
  • Opciones
  • Flujo de noticias
  • Pine Script®
Aplicaciones
  • Móvil
  • Desktop
Comunidad
  • Red social
  • Muro del amor
  • Recomendar a un amigo
  • Normas internas
  • Moderadores
Ideas
  • Trading
  • Formación
  • Selecciones de los editores
Pine Script
  • Indicadores y estrategias
  • Wizards
  • Autónomos
Herramientas y suscripciones
  • Funcionalidades
  • Precios
  • Datos de mercado
Trading
  • Resumen
  • Brokers
Ofertas especiales
  • Futuros CME Group
  • Futuros Eurex
  • Paquete de acciones de EE.UU.
Acerca de la empresa
  • Quiénes somos
  • Misión espacial
  • Blog
  • Ofertas de empleo
  • Kit de medios
Tienda
  • Tienda TradingView
  • Cartas de tarot para traders
  • C63 TradeTime
Políticas y seguridad
  • Condiciones de uso
  • Exención de responsabilidad
  • Política de privacidad
  • Política de cookies
  • Declaración de accesibilidad
  • Consejos de seguridad
  • Programa de recompensas por encontrar errores
  • Página de estado
Soluciones para empresas
  • Widgets
  • Bibliotecas de gráficos
  • Lightweight Charts™
  • Gráficos avanzados
  • Plataforma de trading
Oportunidades de crecimiento
  • Publicidad
  • Integración de brokers
  • Programa de socios
  • Programa de formación
Comunidad
  • Red social
  • Muro del amor
  • Recomendar a un amigo
  • Normas internas
  • Moderadores
Ideas
  • Trading
  • Formación
  • Selecciones de los editores
Pine Script
  • Indicadores y estrategias
  • Wizards
  • Autónomos
Soluciones para empresas
  • Widgets
  • Bibliotecas de gráficos
  • Lightweight Charts™
  • Gráficos avanzados
  • Plataforma de trading
Oportunidades de crecimiento
  • Publicidad
  • Integración de brokers
  • Programa de socios
  • Programa de formación
Look FirstLook First