'How to read just the ticker name in input.symbol in Pine Script?
My script is allowing the user to input different tickers. Currently, I have my script just reading the input and outputting it onto a table. The table displays "NYSE:AAPL", when I would like it to just output "AAPL".
I read the input in like this: s01 = input.symbol("AAPL", "Symbol")
Any suggestions would be appreciated! I know I can use syminfo.ticker to get the current ticker name without exchange; but I don't know how to use this on my input.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
