Thinkscript function for market cap?


Category:
0
0

I’d like to colorcode watchlist market cap values below certain threshold.

Is there a function or combination of functions (say shares, or float as TD refers to it, multiplied by price for ex) to get market cap ($millions) to be able to color the watchlist column if it meets a threshold? There doesn’t seem to be a function to do this which is weird since it seems like a basic piece of data you’d want to manipulate..

Marked as spam
Posted by (Questions: 22, Answers: 63)
Asked on June 20, 2022 12:51 pm
1496 views
0
Private answer

This is a great question and seems to be pretty common. So I have provided a screenshot below to help users of Thinkorswim to determine which quote columns contain code and which ones do not.

If the quote column does not contain any code that means the values are computed internally and are not available through any custom script we can write.

Along with the screenshot I will provide the following link which shows all of the available script functions related to Stock Fundamentals:

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Stock-Fundamentals

There are 20 items available in this category at this time and none of them provides access to the Market Cap of individual stocks. And among those which are available I do not see any combination of them which might be used to compute the Market Cap indirectly.

For those users of Thinkorswim who find this an essential item to access through a custom script you will need to submit this as a feature request to TD Ameritrade support.

There is one way to accomplish what you described using the RTD functionality of MS Excel. The following video explains how to connect an Excel spreadsheet to the live data stream of Thinkorswim. (however this only works on Windows version of Thinkorswim).

https://www.hahn-tech.com/thinkorswim-rtd-excel/

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 20, 2022 3:51 pm
0
Thanks Pete. I'm not sure how responsive to requests TD is based on past experience but I'll give it a shot.
( at June 20, 2022 6:56 pm)
0
Just like anything else. The squeaky wheel gets the grease. So in cases like this its crucial that you find other like minded individuals who see the value in this. And make sure they also request this feature. Sharing this post may help you get the word out. Or you may find some other way to spread the word.
( at June 20, 2022 7:02 pm)