• Produits
  • Communauté
  • Marchés
  • Courtiers
  • Plus
Commencez
  • Communauté
  • /Indicateurs et stratégies
  • /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.
Bibliothèque Pine Script®
par tartigradia
Mis à jour
22

Sélectionnez les données de marché fournies par ICE Data services. Sélectionnez les données de référence fournies par FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Plus qu'un produit
  • Supercharts
Screeners
  • Actions
  • ETFs
  • Obligations
  • Crypto coins
  • Paires CEX
  • Paires DEX
  • Pine
Cartes thermiques
  • Actions
  • ETFs
  • Crypto
Calendriers
  • Economie
  • Bénéfices
  • Dividendes
Plus de produits
  • Courbes de rendement
  • Options
  • Flux d'actualités
  • Pine Script®
Apps
  • Mobile
  • Desktop
Communauté
  • Réseau social
  • Mur d'Amour
  • Parrainer un ami
  • Règlement
  • Modérateurs
Idées
  • Trading
  • Éducation
  • Choix de la rédaction
Pine script
  • Indicateurs & stratégies
  • Wizards
  • Freelancers
Outils & Abonnements
  • Fonctionnalités
  • Tarifications
  • Données boursières
Trading
  • Vue d'ensemble
  • Courtiers
Offres spéciales
  • Contrats à terme de CME Group
  • Contrats à terme Eurex
  • Paquet d'actions US
Au sujet de l'entreprise
  • Qui nous sommes
  • Mission spatiale
  • Blog
  • Carrières
  • Kit media
Merch
  • Boutique TradingView
  • Cartes de tarot pour les traders
  • Le C63 TradeTime
Politiques & Sécurité
  • Conditions d'utilisation
  • Clause de non-responsabilité
  • Politique de confidentialité
  • Politique en matière de cookies
  • Déclaration d'accessibilité
  • Conseils de sécurité
  • Programme de chasse aux bugs
  • Page du statut
Solutions pour les entreprises
  • Widgets
  • Bibliothèques de graphiques
  • Lightweight Charts™
  • Graphiques avancés
  • Plateforme de trading
Opportunités de croissance
  • Publicité
  • Intégration de courtiers
  • Programme de partenariat
  • Programme éducatif
Communauté
  • Réseau social
  • Mur d'Amour
  • Parrainer un ami
  • Règlement
  • Modérateurs
Idées
  • Trading
  • Éducation
  • Choix de la rédaction
Pine script
  • Indicateurs & stratégies
  • Wizards
  • Freelancers
Solutions pour les entreprises
  • Widgets
  • Bibliothèques de graphiques
  • Lightweight Charts™
  • Graphiques avancés
  • Plateforme de trading
Opportunités de croissance
  • Publicité
  • Intégration de courtiers
  • Programme de partenariat
  • Programme éducatif
Look FirstLook First