I'm not even sure if this is possible, but I thought I'd ask...
Is anyone aware of a script to lookup the SPDR sector a symbol is a part of, if applicable? Right now, I have various labels for the primary sectors I swing trade in (Tech / XLK, Energy / XLE, etc.) and they show on each symbol. Looking at an AAPL chart will show all sectors. It would be pretty cool if there was a way to lookup the sector, and display that value - using our AAPL example, the label would return XLK and I would then apply my basic "green/red" value to display if the sector is positive or negative.
Obviously if the symbol isn't included, we can just return an N/A or something.
Is anyone aware of a script to lookup the SPDR sector a symbol is a part of, if applicable? Right now, I have various labels for the primary sectors I swing trade in (Tech / XLK, Energy / XLE, etc.) and they show on each symbol. Looking at an AAPL chart will show all sectors. It would be pretty cool if there was a way to lookup the sector, and display that value - using our AAPL example, the label would return XLK and I would then apply my basic "green/red" value to display if the sector is positive or negative.
Obviously if the symbol isn't included, we can just return an N/A or something.