Check if symbol is in an Index


Category:
0
0

Hi. I really appreciate your forum. 

I’m have a conditional label that shows a MACD trend for the index a stock is in. For instance, if GetSymbol() is AAPL then call a MACD script that accepts NDX as the close(symbol).

Is there a way to retrieve the exchange for a symbol or if a symbol is in an index?

I’m a programmer to so my brain says if not then make a huge lookup list but TS doesn’t have arrays or lists or a massive if statement that I’d generate. Both sound bad.

Thanks for any help.

Marked as spam
Posted by (Questions: 4, Answers: 2)
Asked on May 16, 2020 5:25 pm
45 views
0
Private answer

I scoured the language reference for Thinkorswim and found no tools that would allow us to determine the index, industry or sector that any given ticker symbol belongs to.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on May 16, 2020 6:09 pm