custom watchlist SYMBOL column for custom coloring


Category:
0
0

I’d like to create a custom symbol column to use instead of the standard one included in watchlists in order to be able to apply my own conditional coloring to it.  getSymbol does not seem to work as a way to “grab” the current watchlist line’s symbol as a variable to use in a plot.  Any ideas?

Marked as spam
Posted by (Questions: 6, Answers: 5)
Asked on November 26, 2020 8:59 pm
113 views
0
Private answer

We have provided a solution in the following post that will work:

https://www.hahn-tech.com/ans/track-performance-from-a-track-date-in-a-watchlist/

You just need to replace the data string with the GetSymbol() function:

AddLabel(yes, GetSymbol());

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 27, 2020 8:24 am
0
Excellent, thank you. Perhaps you can help me with my main objective: I would like to apply background color to watchlist fields based on a symbol's %change from the previous days close. I would like this formula using %change to be dynamic so that the colors change as the %change from the close changes in real time. I'm unable to apply dynamic colored background to the %Change field that comes standard in a watchlist, so how can i make my own %change field and apply background color to it, that changes in real time along with the %change data? I very much need this idea to work in the premarket as well as the rest of the day. Any help greatly appreciated!
( at November 29, 2020 6:49 am)
0
That has got to be the single most often requested solution for custom watchlist columns as a topic. The following link shows the search results for "percent change" in the watchlist topic: https://www.hahn-tech.com/ans/cat/watchlists/?question_type=all&search=percent%20change
( at December 3, 2020 8:41 am)