Display volume with thousands separator


Category:
0
0

Hello, first of all I want to apologize for my English, I am a follower of yours, and it helps me a lot, and I appreciate it. I don’t know what I did and the way the volume looks at the quote watchlist was changed, before the separation of thousands was seen with “,” as or “.” Point, and now it is seen without separation of thousands (before 1,000,000 now 1000000 ), how could you see the separation of thousands?
thanks

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on December 16, 2019 9:51 am
662 views
0
Private answer

At this time there is no way to change the formatting of the values displayed in a watchlist column. Or I should be more specific and say that there is currently no way to do this through any user settings. The option we have to change the formatting requires a custom code solution that employs the use of the AddLabel() function and the AsText() function. Both of which are demonstrated in the following:

https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Others/AsText.html

Here is what that solution looks like for the volume:

AddLabel(yes, AsText(volume, NumberFormat.DOLLAR), Color.CURRENT);

Sorry to say that the only way to display the thousands separator for numeric values is to apply the "DOLLAR" NumberFormat. This also places a dollar ($) sign in front of the value and adds two decimal places at the end. Far from a perfect solution but at this time it's as good as it gets.

Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on December 16, 2019 10:51 am
0
it's weird since last week I saw it well; I did what you recommended and it's the closest thing, thanks
( at December 16, 2019 12:46 pm)