Hi,
In adding the "S&P 500 Sector Indices" watchlist I found that the symbols are named "$SP500#10", "$SP500#15", etc. Is there a way I can add a custom watchlist column via Thinkscript that renames the symbol?
There's only 11 index symbols, so happy to go the brute force route...I tried something like below but "plot" expects a double. Thanks!
In adding the "S&P 500 Sector Indices" watchlist I found that the symbols are named "$SP500#10", "$SP500#15", etc. Is there a way I can add a custom watchlist column via Thinkscript that renames the symbol?
There's only 11 index symbols, so happy to go the brute force route...I tried something like below but "plot" expects a double. Thanks!
Code:
def symbol_name;
if GetSymbol() == "$SP500#10" {
symbol_name = "Energy";
} else {
symbol_name = "blah123";
};
plot symbol_name;